Fix worktree switch tab order, focus restoration, and remap Cmd+J to editor terminal#81
Merged
amandal0903 merged 3 commits intoreleasefrom Apr 6, 2026
Merged
Conversation
added 3 commits
April 7, 2026 03:56
Preserve the original interleaved editor/terminal tab order when switching between worktrees. Previously, Phase 2 terminal restore appended terminals at the end (e.g. [E1, E2, T1, T2] instead of [E1, T1, T2, E2]) and the last terminal stole focus. - Add tabIndex to ITerminalOwnership; snapshot in Phase 1 alongside groupIndex so each terminal's tab position is recorded before backgrounding - After Phase 2 shows terminals, reorder them to their saved tabIndex via moveEditor to restore original interleaved positions - Save per-group active editor URI in Phase 1; restore focus in Phase 2 after terminals are re-shown to prevent focus theft - Replace console.warn debug leftovers with logService.trace - Skip duplicate Stop notifications (self-transition guard) - Fix test mocks: add shellLaunchConfig, capabilities, getSessionState
amandal0903
added a commit
that referenced
this pull request
Apr 7, 2026
…editor terminal (#81) * Fix worktree switch tab order and focus restoration Preserve the original interleaved editor/terminal tab order when switching between worktrees. Previously, Phase 2 terminal restore appended terminals at the end (e.g. [E1, E2, T1, T2] instead of [E1, T1, T2, E2]) and the last terminal stole focus. - Add tabIndex to ITerminalOwnership; snapshot in Phase 1 alongside groupIndex so each terminal's tab position is recorded before backgrounding - After Phase 2 shows terminals, reorder them to their saved tabIndex via moveEditor to restore original interleaved positions - Save per-group active editor URI in Phase 1; restore focus in Phase 2 after terminals are re-shown to prevent focus theft - Replace console.warn debug leftovers with logService.trace - Skip duplicate Stop notifications (self-transition guard) - Fix test mocks: add shellLaunchConfig, capabilities, getSessionState * Bump version to v0.2.8 * Remap Cmd+J to open terminal in editor area instead of toggling bottom panel
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