8000 fix: closing the last window quits kagan on Windows and Linux by aorumbayev · Pull Request #143 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

fix: closing the last window quits kagan on Windows and Linux - #143

Merged
aorumbayev merged 10 commits into
mainfrom
fix/windows-close-quits
Nov 12, 2026
Merged

aorumbayev merged 10 commits into
mainfrom
fix/windows-close-quits

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

Closing the last window on Windows and Linux now runs the same shutdown as Quit: programs stop and resume on the next open, then kagan exits. macOS keeps the app in the Dock.

  • Hook in crates/ui/src/kagan/quit.rs, reusing accept. Skipped while a quit is running or confirmed.
  • Two tests: keyboard close and direct window removal (title bar X / Alt+F4).
  • Decision 269 amends 46 and 66. docs/behaviour.md Close updated.
  • Size ceiling set to the exact count (+14 lines in quit.rs).

Not yet verified on a real Windows window close; see .plans/winqa/report-quit.md.

Closing the last window now runs the same shutdown as Quit, so programs stop and resume on the next open. macOS keeps the app in the Dock. Decision 249.
Closing the last window runs the same shutdown as Quit, so programs stop and resume on the next open. macOS keeps the app in the Dock. Decision 264.
# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
On Windows and Linux closing the last window quits kagan, so reopen and keep-running tests are macOS only; the dock count test keeps About open; a non-macOS test covers closing during a question.
Their macOS gates left imports unused on Linux and Windows; both tests passed there before.
@aorumbayev
aorumbayev merged commit 6ff7ec0 into main Nov 12, 2026
20 checks passed
@aorumbayev
aorumbayev deleted the fix/windows-close-quits branch November 12, 2026 08:59
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

0