Skip to content

chore(ui): remove debug console.log statements from App.tsx#7874

Closed
jeffa-block wants to merge 1 commit intoblock:mainfrom
jeffa-block:jeffa/cleanup-debug-logs-app
Closed

chore(ui): remove debug console.log statements from App.tsx#7874
jeffa-block wants to merge 1 commit intoblock:mainfrom
jeffa-block:jeffa/cleanup-debug-logs-app

Conversation

@jeffa-block
Copy link
Copy Markdown
Contributor

Why

App.tsx contains 7 console.log statements used for development-time debugging of IPC events and lifecycle signals. These appear in DevTools in production builds and provide no value to end users.

What

Remove all console.log calls from ui/desktop/src/App.tsx:

  • reactReady signal notification
  • Keyboard shortcut setup trace
  • View change request logging
  • New-chat event trace
  • Initial message IPC event logging (received / processing / duplicate)

All console.error calls for actual error handling are preserved.

Also removes a now-empty else if branch that only contained a removed log statement.

How to review

Single file, 15 lines deleted. Verify each removal was a console.log (not console.error), and that no logic was affected.

Testing

  • npm run build in ui/desktop — no compile errors
  • Manual: open Goose desktop, verify IPC events (new chat, view switching, initial message) still work. The only difference is silence in DevTools console.

Remove 7 console.log statements used for development-time debugging
of IPC events and lifecycle signals. All console.error calls for
actual error handling are preserved.

Removed logs:
- reactReady signal notification
- Keyboard shortcut setup trace
- View change request logging
- New-chat event trace
- Initial message IPC event logging (received/processing/duplicate)

No behavioural changes — these logs were only visible in DevTools
and provided no value in production.
@DOsinga
Copy link
Copy Markdown
Collaborator

DOsinga commented Mar 26, 2026

Squashed into #8142

@DOsinga DOsinga closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants