Skip to content

Keep the 'worktree is ready' toast until dismissed - #27566

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/worktree-created-toast-persist
Oct 11, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/worktree-created-toast-persist

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2

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

  • Before: the "Worktree is ready" (or "Workspace is ready" for folder projects) toast closed itself after the default few seconds.
  • After: it stays on screen until you close it with its X button or click "Go to worktree", which also closes it.

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 duration to Infinity in src/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.tsx to check that the toast has no timeout; the file passes (3/3).

  • orca-ci-checks: lint, localization, ratchets and pnpm run typecheck pass. typecheck:ci failed 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Renderer-only change to a toast's lifetime. No effect on SSH, mobile, platform-specific behavior, or performance.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21f9bbfc-c294-4847-9146-88f5f51bffb5

📥 Commits

Reviewing files that changed from the base of the PR and between c24a235 and 99aec06.


You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: df6b7453-8a77-47af-8e54-d76b71eb6547


📥 Commits

Reviewing files that changed from the base of the PR and between 9ad4559 and c24a235.



📒 Files selected for processing (2)
  • src/renderer/src/lib/worktree-creation-ready-toast.test.tsx
  • src/renderer/src/lib/worktree-creation-ready-toast.tsx


Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.




📝 Walkthrough
📝 Walkthrough

Walkthrough

The worktree creation success toast now sets its duration to Infinity. The test mock accepts and records an optional duration, and the git-worktree toast test checks that the recorded duration is Infinity.



Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to c24a2

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 | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: keeping the worktree-ready toast visible until the user dismisses it.
Description check Passed The description is detailed and covers the user impact, implementation, rationale, visual-proof exception, testing, scope, and checklist status. The linked issue field is empty, and several full valid…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.



✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR



  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

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:

  • After four or more persistent ready toasts, the oldest is hidden by the toast library's three-visible limit until newer toasts are dismissed. The created worktree remains available in the sidebar.
  • If you delete a worktree while its ready toast remains, its Go to button can be stale. The toast is still dismissible.

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 orca-ci-checks passed 25/26 stages; its typecheck:ci stage hit the previously documented local Bun Script not found "check" toolchain error, while its standard typecheck stage passed. No manual Windows or Linux UI run was done.

Ready toast in the remote Electron QA run

@brennanb2025
brennanb2025 merged commit e0090f9 into main Oct 11, 2026
29 checks passed
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