Skip to content

fix: stop auto-opening DevTools on window creation#31

Merged
graydawnc merged 1 commit intomainfrom
fix/devtools-auto-open
Apr 1, 2026
Merged

fix: stop auto-opening DevTools on window creation#31
graydawnc merged 1 commit intomainfrom
fix/devtools-auto-open

Conversation

@graydawnc
Copy link
Copy Markdown
Collaborator

@graydawnc graydawnc commented Apr 1, 2026

Summary

  • Remove unconditional win.webContents.openDevTools() call in createWindow()
  • In dev mode, DevTools were opened every time a window was created — including when re-activating the app from tray/dock after closing the window, which caused the DevTools panel to appear unexpectedly
  • DevTools remain accessible via Cmd+Option+I (already in the Electron view menu)

Test plan

  • Run pnpm dev, verify the app opens without DevTools
  • Close the window, click the tray icon or dock icon to reopen — verify no DevTools
  • Press Cmd+Option+I — verify DevTools still open manually

🤖 Generated with Claude Code

DevTools were opened unconditionally in dev mode via createWindow(),
which meant re-activating the app from tray/dock would show DevTools.
Use Cmd+Option+I to open DevTools manually when needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@graydawnc graydawnc merged commit 8ea6366 into main Apr 1, 2026
3 checks passed
@graydawnc graydawnc deleted the fix/devtools-auto-open branch April 1, 2026 16:57
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.

1 participant