Skip to content

Minimize to tray works without an account - #1180

Merged
grytchat merged 1 commit into
mainfrom
claude/GRYT-2077-tray-local-identity
Nov 11, 2026
Merged

grytchat merged 1 commit into
mainfrom
claude/GRYT-2077-tray-local-identity

Conversation

@grytchat

Copy link
Copy Markdown
Contributor

From two bug reports, the latest on desktop 1.15.10 for Windows: with Local Identity, "Minimize to tray on close" quits the app instead of hiding it. The reporter found the cause and a workaround (window.electronAPI.setSignedIn(true) in DevTools).

The window's close handler only hid to the tray when isUserSignedIn was true. That flag came from the renderer's account state, and with Local Identity nobody signs in, so it stayed false. The check dates from when the app asked people to pick an account or a guest identity before using it. That choice is gone.

  • electron/main.ts: the close handler checks only isQuitting and closeToTray. isUserSignedIn and the set-signed-in IPC are removed.
  • electron/preload.ts, src/lib/electron.ts: setSignedIn is removed.
  • useAccount.tsx: the effect that called it is removed.

The behaviour change to look at: if someone has close-to-tray on, closing now always hides to the tray, signed in or not. The tray icon brings the window back.

GRYT-2077

🤖 Generated with Claude Code

The close handler only hid the window to the tray when the renderer had
said someone was signed in. With Local Identity nobody signs in, so
"Minimize to tray on close" quit the app instead. The check is gone, and
so is the signed-in flag and its IPC, which nothing else used.

GRYT-2077

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit 0ac94b6 into main Nov 11, 2026
21 checks passed
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