Repository navigation
Conversation
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
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.
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.