Close secondary workspace windows after the last tab
This commit is contained in:
@@ -741,3 +741,20 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- Evidence files: RuneStone_Project_Management/.audit/october-{default,onboarding}-{theme}-{width}.png. The packaged plugin also passes its host state check.
|
||||
- Local overrides: The new onboarding control uses the existing standard button for readable text in both themes.
|
||||
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open.
|
||||
|
||||
### UI-039 — Close secondary windows after the last tab
|
||||
|
||||
- Type: Rule change
|
||||
- Date: 2026-10-21
|
||||
- Status: Implemented for user review
|
||||
- Decision source: Card 6fcee006-c5a5-4d1b-9605-5d763715b95c.
|
||||
- New rule: Closing the last tab closes a secondary workspace window. The main window keeps a New tab.
|
||||
- Reason: Close an empty secondary window when the user finishes its work.
|
||||
- Scope: Ordinary secondary workspace windows and detached tabs, including documents, plugin views, and empty tabs.
|
||||
- Shared implementation: Workbench.closeTabs calls the existing window-close handler. Cancel preserves the last tab and unsaved edits.
|
||||
- Shared tokens: Existing tab controls, icons, focus, and theme tokens. No style or color changes.
|
||||
- Local overrides: None added.
|
||||
- Evidence: Type checks and 268 unit tests pass. The tab browser check passes for button, middle-click, shortcut, and Close all.
|
||||
- Evidence: The browser check also covers mixed tabs, pinned tabs, plugin tabs, and Cancel with unsaved edits.
|
||||
- Evidence files: .audit/secondary-last-tab-cancel.png and .audit/compact-tabs-{width}-{theme}.png.
|
||||
- Limits: Desktop calls use browser mocks. Native window closure and active terminal confirmation still need desktop acceptance.
|
||||
|
||||
Reference in New Issue
Block a user