Skip to content

Restore tray icon for the default controller launch - #587

Merged
DRSDavidSoft merged 2 commits into
mainfrom
fix/default-tray-icon
Oct 1, 2026
Merged

DRSDavidSoft merged 2 commits into
mainfrom
fix/default-tray-icon

Conversation

@DRSDavidSoft

Copy link
Copy Markdown
Collaborator

Closes #586. Starts the native tray for the flag-free/default TUI primary through the same lifecycle gate as web mode, prevents duplicate secondary trays, preserves explicit --no-tray, makes tray Exit stop the TUI owner, updates operations docs, and adds enabled-by-default/opt-out regression coverage. Verified with go test ./cmd/controller ./internal/nativeshell and git diff --check.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Tray Exit cancels integration contexts before hardware cleanup can complete.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Restores the Windows tray icon for the default controller launch by connecting local-primary TUI mode to the existing native-shell lifecycle.

Changes:

  • Shares tray startup between TUI and web primaries.
  • Adds TUI --no-tray, Exit handling, and helper-level regression tests.
  • Updates tray ownership and shortcut documentation.
File Description
Tools/​Controller/​README.md Documents default/TUI tray ownership.
Tools/​Controller/​cmd/​controller/​native_web_shell.go Adds the shared tray startup gate.
Tools/​Controller/​cmd/​controller/​native_web_shell_test.go Tests default enablement and explicit opt-out.
Tools/​Controller/​cmd/​controller/​main.go Wires TUI tray startup, cleanup, and shutdown.
docs/​Host-Configuration-and-Integrations.md Clarifies interactive-primary tray behavior.
docs/​Getting-Started-and-Operations.md Updates tray options and shortcut launch guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Tools/Controller/cmd/controller/main.go Resolved
@DRSDavidSoft
DRSDavidSoft merged commit 70559f8 into main Oct 1, 2026
24 checks passed
@DRSDavidSoft
DRSDavidSoft deleted the fix/default-tray-icon branch October 1, 2026 18:54
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.

Restore tray icon for the default flag-free controller launch

3 participants