Repository navigation
Single-instance activation, window registry and tray icon - #20
Merged
Merged
Conversation
…on (#11) - ShutdownMode=OnExplicitShutdown; WindowRegistry tracks open windows and quits when the last closes (the tray icon will turn that off). - One Bermuda per user via AppInstance: a second launch forwards its activation (including --open <appId> and toast clicks) to the running instance and exits. SINGLE_INSTANCE / SINGLE_INSTANCE_KEY configure it; the Aspire host sets a key so dev/e2e runs stay apart from an installed app. - WindowAppLauncher.Open opens an app window without an FDC3 instance id. - e2e specs for the second-launch behaviour. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closing the main window now hides it to a notification-area icon instead of exiting (TRAY_ENABLED, default true). Left-click toggles the main window; the menu offers Show, New window and Quit. A launch from the MSIX startup task or with --background starts hidden in the tray. If the tray cannot be created the app falls back to closing normally, so a hidden window is never stranded. Adds IsVisible to the window controller, shared e2e helper hostProcess.ts and a tray e2e spec. Tray visuals, menu and start-hidden still need a manual check in an interactive session. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11
Closes #12
Groundwork for the jump list (#13) and child windows (#19), plus the tray icon (#12) built on top of it.
What changed
ShutdownMode=OnExplicitShutdown; a newWindowRegistrytracks the open windows and quits the app when the last one closes (unless the tray is enabled).AppInstance: a second launch forwards its activation to the running instance and exits. That covers--open <appId>(opens that App Directory app's window), a plain relaunch (brings the main window forward) and toast clicks that land on a second process.WindowAppLauncher.Openopens an app window without an FDC3 instance id.SINGLE_INSTANCE=falseturns the behaviour off;SINGLE_INSTANCE_KEYisolates a run from an installed Bermuda. The Aspire host sets a key so dev and e2e runs stay apart.Tray icon (#12)
TrayService(H.NotifyIcon.Wpf): left-click shows or hides the main window; the right-click menu offers Show Bermuda, New window and Quit.TRAY_ENABLED=falseturns this off (default true). Quit and session end (logoff/shutdown) still exit.--background, starts hidden in the tray.IsVisibleadded to the window controller (and the generatedipc.d.ts).Testing
dotnet buildanddotnet test: 58 unit tests pass.e2e/single-instance.spec.tsande2e/tray.spec.ts(hide on close, restore via a second launch), sharinge2e/hostProcess.ts. Full e2e suite passes (129 tests) on isolated ports.🤖 Generated with Claude Code