Repository navigation
Keep the 'worktree is ready' toast until dismissed - #27566
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The ready toast stays visible until the user closes it or selects “Go to worktree”; no actionable merge-blocking risk is identified. Pre-merge checks |
|
…-created-toast-persist
|
Review status: ready with two deferred edge cases. When a worktree or folder workspace finished creating after you had moved elsewhere, Orca showed a ready toast with a Go to button. The toast used the normal short timeout, so the button could disappear before you saw it. This PR keeps that toast until you close it or use the button; using the button also closes it. The focused change and its test were retained after independent correctness, architecture, and UI reviews. Deferred cases:
Verified: the focused tests passed (8/8); standard typecheck and renderer typecheck passed; remote hidden Electron QA exercised delayed creation after leaving the composer, confirmed the toast stayed visible beyond the ordinary timeout, and checked Go to navigation and X dismissal. The final pushed head was synced with main once and CI passed. Local |

ELI5
When you start creating a worktree and move on to something else, Orca shows a "Worktree is ready" toast with a "Go to worktree" button once it finishes. That toast disappeared after a few seconds, so if you weren't looking at that moment you lost the button. Now it stays until you close it or click the button.
What Changed
The toast is only shown when a worktree finishes creating after you have left the screen where you started it. The change sets the toast's
durationtoInfinityinsrc/renderer/src/lib/worktree-creation-ready-toast.tsx, which is how Orca's other persistent toasts work. The app's toast area already shows a close button on every toast, so there is always a way to dismiss it.Why
Creating a worktree can take a while, and this toast fires exactly when you are likely looking at something else. A toast that times out on its own defeats its purpose: it is the shortcut back to the worktree you just made. A persistent toast with a close button is the simplest fix and reuses the existing toast setting. I didn't add anything new, like a notification center entry.
Visual Proof
N/A: the toast looks exactly the same. The only change is how long it stays up, which a screenshot can't show.
Testing
Updated
worktree-creation-ready-toast.test.tsxto check that the toast has no timeout; the file passes (3/3).orca-ci-checks: lint, localization, ratchets andpnpm run typecheckpass.typecheck:cifailed locally on a toolchain error (bun ... Script not found "check"for every project), which is unrelated to this two-file change; CI will run it.Not manually tested in the running app.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Agent skill upstream boundary
Notes
Renderer-only change to a toast's lifetime. No effect on SSH, mobile, platform-specific behavior, or performance.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)