Skip to content

feat(app): add bulk closing to session sidebar menus - #253

Open
loooinfo wants to merge 1 commit into
TooonyChen:mainfrom
loooinfo:feature/close-session-groups
Open

loooinfo wants to merge 1 commit into
TooonyChen:mainfrom
loooinfo:feature/close-session-groups

Conversation

@loooinfo

Copy link
Copy Markdown

Summary

Add Close others and Close all to the session-row context menus, and a Close all-only menu on blank space in the session list. Close others retains and selects the right-clicked session, including its independent panel; invoked on a panel it preserves the owning connection. Disabled states cover empty lists and a single remaining connection.

Defer row deletion until list construction ends, iterate a snapshot, and reuse individual close cleanup for connections, local processes, transfers and panel rows. Clear stale rename state and leave the application and saved host configuration intact. Invoke the existing close path for rowless pending launches; auditing with administrator-terminal #251 reproduced a missed UAC cancellation and verified the fix before publication. The feature has no administrator dependency.

Includes bilingual locales, docs and four headless menu screenshots. They match the requested row/blank-space layout; the real menu retains all existing split and rename actions and automatically opens upward when needed, while the preview simplified those existing actions. Upstream release settings are unchanged.

Closes #252

Testing

  • Final focused race checks: 15 independent and 23 combined top-level tests passed. Go vet, MyGo vet and Windows cross-build passed on both workspaces.

  • Independent go test -race ./... -count=1 -timeout 20m -json: app 337 passed, 16 skipped, the same 3 upstream baseline failures (491.072s). Other packages passed or had no tests; no new failures, races, timeouts or incomplete tests.

  • Combined custom workspace go test -race ./... -count=1 -timeout 20m -json: app 402 passed, 16 skipped, the same 3 upstream baseline failures (546.519s). Other packages passed or had no tests; no new failures, races, timeouts or incomplete tests.

  • Known baseline failures, previously reproduced upstream: TestBackgroundImage, TestBackgroundReadsOffUIThread, TestCommandBarPage. The full suite is not reported as completely passing.

  • Earlier full runs were deliberately stopped after the confirmed audit fix; the results above are complete reruns of the final sources. The rebuilt combined 0.4.1 Windows EXE/ZIP and complete source patch were verified, preserving the original real index.

  • Added UI and lifecycle regressions for a nonselected right-click target, row and blank-space Close all, empty/single menus, new tabs, owner/panel retention, stale target/rename cleanup, local shell exit and 90 connecting rows.

  • Administrator integration: the new regression failed before rowless cancellation was added and passed afterward in a scratch worktree with feat(app): open local terminals as administrator on Windows #251; the combined workspace also passed it.

  • English and Simplified Chinese row and blank-space screenshots rendered with ui.NewTester/popover menu presentation and visually checked. Native Windows/macOS menus have not been tested; Windows source was cross-compiled. The previously documented native UAC validation for feat(app): open local terminals as administrator on Windows #251 remains outstanding.

Generated with Codex.

Add Close others and Close all to session rows, with Close all on blank space. Defer deletion until the list is built and reuse individual cleanup, preserving owning connections and panels. Include audit coverage for rowless pending administrator launches.

Closes TooonyChen#252

This branch has not been deployed

No deployments
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.

feat(app): add bulk closing to session sidebar menus

1 participant