Skip to content

fix: restore terminal surface when switching worktrees - #450

Merged
AmethystLiang merged 1 commit into
mainfrom
fix-worktree-switch-tab
Apr 10, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix-worktree-switch-tab

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Fix tab-type restoration in setActiveWorktree that incorrectly promoted terminal surface to editor when the worktree had open files
  • Add explicit 'terminal' branch in the surface restoration logic so switching back to a worktree lands on the terminal tab the user was last working in
  • Add test covering the terminal-surface-with-open-files scenario

Test plan

  • New unit test: restores terminal surface when switching to a worktree that was last on a terminal tab with open files
  • Manual: open a worktree on terminal tab with files open, switch away, switch back — should land on terminal, not editor

The tab-type restoration logic in setActiveWorktree fell through to the
editor branch when a worktree had open files, even if the user was last
on the terminal surface. Add an explicit 'terminal' case so switching
back lands on the terminal tab as expected.
@AmethystLiang
AmethystLiang merged commit 3e80176 into main Apr 10, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the fix-worktree-switch-tab branch April 10, 2026 21:03
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…lyai#450)

The tab-type restoration logic in setActiveWorktree fell through to the
editor branch when a worktree had open files, even if the user was last
on the terminal surface. Add an explicit 'terminal' case so switching
back lands on the terminal tab as expected.
Thundernerd added a commit to Thundernerd/orca that referenced this pull request Nov 18, 2026
… of tickets

Each implemented ticket handed over one to three findings in the area it had
just touched, and each of those did the same, so the tracker filled with
narrowing variations on one theme (on Cronk: stablyai#421 → stablyai#430 → stablyai#442/stablyai#443 →
stablyai#448/stablyai#454 → stablyai#460/stablyai#461, and similar chains for closing, query binding and
From Transcript kinds). Some were review points on code still on the
unmerged branch (stablyai#450, stablyai#453) or /code-review judgement calls (stablyai#467).

- The implementing brief, local and cloud, now counts only real bugs and
  gaps as findings. Problems in code the branch adds are fixed in its PR;
  judgement calls, tidy-ups and further passes over freshly reworked code
  are left with a reason in the report instead of handed over.
- The finding check also searches tickets closed in the last two weeks and
  the findings already filed up the "Found while implementing" chain, and
  files nothing for code that exists only on the origin's branch.
- A finding whose title is already recorded on its origin is not filed
  again, which is how stablyai#431 duplicated stablyai#430.
- The filed body no longer repeats "Found while implementing" and the
  triage line when the agent's draft already opens with them.
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