fix(desktop): without a tray, the first-close dialog defaults to Quit (cinny-desktop #37) #416

Merged
jared merged 1 commits from fix/close-no-tray into lotus 2026-10-18 08:18:31 -04:00
Owner

Dialog half of cinny-desktop#37 (native half: cinny-desktop#40).

When the window is first closed, the dialog now asks the desktop app has_tray_host:

  • Tray present: unchanged ("Keep running in the tray" focused).
  • No tray (stock GNOME): the text says the desktop doesn't show tray icons and the only way back would be launching again. "Quit when I close the window" is focused, and the other option is "Keep running in the background".
  • Older desktop builds without the command: unchanged.

Verified in Chromium with a stubbed desktop bridge, firing lotus-close-requested (screenshot below):

  • has_tray_host = true → focused "Keep running in the tray".
  • false → focused "Quit when I close the window", buttons [Quit, Keep running in the background], with the no-tray text.

tsc clean · ESLint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5

Dialog half of cinny-desktop#37 (native half: cinny-desktop#40). When the window is first closed, the dialog now asks the desktop app `has_tray_host`: - **Tray present:** unchanged ("Keep running in the tray" focused). - **No tray** (stock GNOME): the text says the desktop doesn't show tray icons and the only way back would be launching again. **"Quit when I close the window" is focused**, and the other option is "Keep running in the background". - Older desktop builds without the command: unchanged. **Verified** in Chromium with a stubbed desktop bridge, firing `lotus-close-requested` (screenshot below): - `has_tray_host = true` → focused "Keep running in the tray". - `false` → focused "Quit when I close the window", buttons [Quit, Keep running in the background], with the no-tray text. `tsc` clean · ESLint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
jared added 1 commit 2026-10-18 02:41:09 -04:00
fix(desktop): without a tray, the first-close dialog defaults to Quit (cinny-desktop #37)
CI / Build & Quality Checks (pull_request) Successful in 3m13s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 13s
CI / Playwright smoke (e2e) (pull_request) Successful in 18m14s
37b3ae1ad7
On desktops with no tray host (stock GNOME), "Keep running in the tray"
hid the window with no icon to bring it back. Ask the desktop app
(has_tray_host); without a tray, say so, focus "Quit when I close the
window", and offer "Keep running in the background" as the secondary
choice. Older desktop builds keep the current dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
Author
Owner

no tray

![no tray](https://code.lotusguild.org/attachments/fd1544bc-24da-4677-b0c5-af4511471017)
jared merged commit 8a2d37b5a1 into lotus 2026-10-18 08:18:31 -04:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#416