Repository navigation
Guard: older sessions' moved editor tabs get the right workspace id (tests only) - #30172
Conversation
…space's id on save and from the first frame Sessions saved before #29930 can hold a moved editor tab whose worktree id still names the workspace it came from. Pin that the saver writes the workspace's own id and that the window's tab carries it after main's first snapshot. Tests only.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
Older versions of Orca could save an editor tab with the wrong workspace label after Orca moved that tab to the workspace that owns its file. This PR adds two tests proving that today's code fixes that label when such a saved session is loaded. No app code changes.
What Changed
Tests only (dark, layout-owner build only for the second test's path).
Both tests fail if the saver stops writing the workspace's own id on tab bar entries (checked by temporarily changing that line).
Why
Upcoming work moves more of the layout into the main process. These tests make sure old saved sessions keep loading correctly through that path before it changes. Adding a load-time repair was considered, but the saver already writes the right id, so a test is enough.
Linked Issue
N/A (internal follow-up to #29930)
Visual Proof
N/A: tests only, no behaviour change.
Testing
pnpm tc: passpnpm run check:code-quality:changed: pass (0 new findings)pnpm run audit:anti-slop: pass--maxWorkers=4):src/shared/workspace-layout, the window frame sync test and the restored editor restart test, 37 files, 318 tests passReview
Agent skill upstream boundary
Notes
Tests only: no security, platform, SSH, mobile, compatibility or performance impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)