[PR #7364] refactor: replace debug console.logs with structured logging #12370

Open
opened 2026-02-16 18:17:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7364

State: open
Merged: No


Replace 12 console.log statements with proper Log.Default.debug() calls:

  • app.tsx: Route data debugging
  • theme.tsx: Theme resolution debugging (2 logs)
  • sync.tsx: Bootstrap debugging
  • route.tsx: Navigation debugging
  • prompt/index.tsx: Command debugging
  • clipboard.tsx: Platform detection debugging (6 logs) Benefits:
  • Configurable via log levels (DEBUG/INFO/WARN/ERROR)
  • Structured output with metadata and timestamps
  • File-based logging (~/.opencode/logs/)
  • Consistent with rest of codebase
  • Better production experience (no console spam) Testing:
  • All type checks pass
  • Manual TUI testing shows no console output
  • Log files written correctly with structured entries"
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7364 **State:** open **Merged:** No --- Replace 12 console.log statements with proper Log.Default.debug() calls: - app.tsx: Route data debugging - theme.tsx: Theme resolution debugging (2 logs) - sync.tsx: Bootstrap debugging - route.tsx: Navigation debugging - prompt/index.tsx: Command debugging - clipboard.tsx: Platform detection debugging (6 logs) Benefits: - Configurable via log levels (DEBUG/INFO/WARN/ERROR) - Structured output with metadata and timestamps - File-based logging (~/.opencode/logs/) - Consistent with rest of codebase - Better production experience (no console spam) Testing: - All type checks pass - Manual TUI testing shows no console output - Log files written correctly with structured entries"
yindo added the pull-request label 2026-02-16 18:17:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12370