Skip to content

Keep a "chats resumed" entry in the bottom bar until you've seen the result - #27580

Merged
brennanb2025 merged 6 commits into
mainfrom
brennanb2025/resume-status-keeps-resumed
Oct 12, 2026
Merged

brennanb2025 merged 6 commits into
mainfrom
brennanb2025/resume-status-keeps-resumed

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​133 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​126
Prod 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​105 $\color{#cf222e}{\Huge{\mathbf{−}}}$​18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​87

ELI5

After Orca restarted and resumed several chats, an all-success run removed its bottom-bar progress entry as soon as it finished. The brief toast then became the only way to reopen the list of resumed chats. The finished dialog could also keep a filter or collapsed group from the running view, so opening it did not always show the result it claimed had been seen.

Now a successful run leaves a ✓ N chats resumed entry in the bottom bar until you open and close the finished result. When the run finishes, the result opens on All with its groups expanded, so the completed chats are visible. A result you watched finish in the dialog is already seen and needs no later entry.

What Changed

  • The new success entry opens the same finished-result dialog as the toast. It counts only chats resumed in that run, so an older unresolved chat does not hide the new success entry. Existing failure and pending entries remain available for their own results.
  • The dialog resets its temporary filter and expanded groups when a run finishes. It records the result as seen only when the finished rows are actually in the displayed view, including a run with no rows.
  • The result and its seen marker remain in renderer memory. Closing the seen result retires the entry; restarting Orca also clears it. No setting, stored data, or host protocol changed.

Why

A separate success flag or timer would have introduced another copy of the result and another cleanup rule. The existing run already records whether its finished result has been shown, so the bottom bar can use that fact directly. The filter and group reset ensure that this marker reflects the finished view the user actually receives.

Jinjing raised the unclear post-resume dialog in Slack. A broader dialog redesign is being mocked separately; this PR addresses the bottom-bar result and its acknowledgment behavior.

Intended difference from the common pattern: Orca shows one result for a resume that can affect chats across worktrees, including chats outside the current view. The entry is temporary and disappears after the result is seen.

Linked Issue

N/A (maintainer change from a Slack report)

Visual Proof

Both runs used a hidden Orca dev build on a throwaway profile, driven only through the developer tools connection. Three real Claude chats were left running a 5-minute command, Orca was quit, and on relaunch the chats were resumed from the dialog. Before = current main (c62c5a4). After = this PR plus #27580, merged locally.

Right when the resume finishes (toast + bottom bar):

Before (main) After
before after

15 seconds later, after the toast has gone. On main nothing is left to reopen the result. With this PR, "✓ 3 chats resumed" stays:

Before (main) After
before later after later

Clicking "3 chats resumed" opened the finished result ("Resumed 3 of 3 chats", every row ✓). After Done, the entry left the bottom bar.

result opened from the bottom bar

(The toast's button alignment in the "after" shots comes from #28042, which was merged into the same local build.)

Testing

  • 35 focused resume and status-bar tests passed. Regressions cover automatic and manual resume, older failures alongside a new success, a failed host reread, an in-progress filter, collapsed groups, and an empty skipped run.

  • pnpm tc:web passed on the merged branch. git diff --check origin/main...HEAD passed.

  • orca-ci-checks --no-typecheck on the merged branch passed 24 of 25 checks. The CI typecheck command failed locally because this Mac’s Bun 1.3.14 reported Script not found "check"; GitHub’s static analysis and full typecheck job passed.

  • Rendered Electron check (10-12, local hidden dev build): a real restart with 3 Claude chats, resumed from the dialog. The entry appeared when the run finished, stayed after the toast left, opened the result, and was gone after Done. Main showed no entry. The M4Air ran 62 focused renderer checks successfully.

  • CI: gh pr checks 27580 --watch --fail-fast --interval 60 passed. Applicable checks included static analysis and typecheck, all five test shards, relay integration, and macOS/Windows packaging.

  • I manually tested these changes locally (macOS hidden dev build; see Visual Proof)

  • Automated tests added/updated, or explained why not below

Review

Four review rounds and a final readiness pass found and fixed success-entry suppression, a misleading result after a failed host reread, hidden finished rows, and retirement of an empty result. No P0, P1, or P2 findings remain in the final review ledger.

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

The changes are renderer-only and add strings to all six locales. They do not change paths, shortcuts, persistence, SSH execution, mobile, or client-host compatibility.

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)

…esult is seen

After every chat resumed, the bottom-bar entry vanished the moment the run
finished, leaving a fading toast as the only way back to the list. Show
'N chats resumed' while a finished run's summary has not been shown yet,
reusing the run's existing finishedViewShown flag so the entry ends exactly
when the summary is viewed and closed.
@brennanb2025

brennanb2025 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor Author

After Orca resumes interrupted chats, a successful run currently removes its bottom-bar entry immediately, leaving only the brief toast to reopen the result. This PR keeps a “N chats resumed” entry until the finished list is displayed and closed, and resets filters and collapsed groups when the run finishes.

Review stopped at round six with an open P2; no merge and no push. The published head remains badc44f6971.

  • The resumed review found that a failed chat recovered directly before the result is viewed can disappear from the host’s list while the dialog still requires its historical row for acknowledgment. Closing then cannot retire the stale result.
  • Local commit fe948007111 fixes that case by checking the current displayed result. Two new regressions failed before the fix and passed afterward. That commit is deliberately unpushed: the fresh sixth-round challenger found it also treats an unavailable host reread like a confirmed removal. In a mixed run, the failed row is hidden during the failed read; closing can retire a result whose complete list was never displayed. A later successful reopen shows only the remaining failure. Host recovery records are preserved and the chat can still be resumed; this is a result-view regression, not data loss.
  • Recommendation: keep the existing memory-only run, but distinguish an unavailable host snapshot from a confirmed withdrawal before acknowledging the result. This is still open, not deferred as a nit. The review-loop limit requires Brennan’s explicit OK before another round.

Verified: 138 focused tests across 13 suites and renderer typecheck passed on the local fix. Final source readiness and a dedicated performance pass found no additional issue; the subsequent challenger finding supersedes the readiness “no open findings” conclusion. The failed-reread consequence is supported by source tracing and direct execution of the row projection; a full renderer regression for it has not been executed.

Checks and gaps: local static checks passed 21/23, with failures limited to the unchanged main-branch missing exports in the sync-spawn audit and this Mac’s Bun 1.3 typecheck limitation. Published-head GitHub static analysis failed on the same main defect; full CI is not green, and the local commit has no CI run. Remote rendered QA was not completed: OpenCode setup encountered a model-selection compatibility limitation, then source review reached its stop. The top-level M4Air qa-pr-27580 worktree and its unused helper terminal were removed before any Electron rig launched. Existing screenshots in the PR body are historical evidence, not verification of this local fix.

Product question: should the completed entry disappear after its result is opened and closed, as implemented, or remain until Orca restarts? No lifetime change was made during this review.

# Conflicts:
#	src/renderer/src/components/NativeChatResumeRunPanel.tsx
@brennanb2025
brennanb2025 marked this pull request as ready for review October 12, 2026 19:42
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: 7e18581d-77ee-434f-9e40-a76e635fd9da

📥 Commits

Reviewing files that changed from the base of the PR and between 982b3d4 and badc44f.


📒 Files selected for processing (11)
  • src/renderer/src/components/NativeChatResumeOnRestartModal.tsx
  • src/renderer/src/components/NativeChatResumeRunPanel.tsx
  • src/renderer/src/components/native-chat-resume-finished-run.test.tsx
  • src/renderer/src/components/native-chat-resume-skipped-progress.test.tsx
  • src/renderer/src/components/status-bar/NativeChatResumeStatusSegment.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

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



📝 Walkthrough

Walkthrough

The resume panel now resets its filter when it opens or the run changes state, and the dialog records a finished summary as shown only when all run rows are visible. The status bar adds a success segment for completed runs that resumed every chat. English, Spanish, French, Japanese, Korean, and Chinese strings support the segment. Tests cover completion, failure, filtering, and skipped retries.


Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to badc4

This change keeps a "chats resumed" entry in the status bar until the finished result has been viewed. It is renderer-only and has focused test coverage, so no merge-blocking risk is evident. The author notes that rendered-app QA was not completed.

Pre-merge checks · Passed 4 · Failed 1

Failed Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 5 files. (6 skipped: 6… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly states the primary change: keep the chats-resumed entry in the bottom bar until the user views the result.
Description check Passed The description is complete and matches the repository template. It explains the user impact, implementation, rationale, testing, visual proof, review status, and compatibility considerations. The rep…
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.

Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 5 files. (6 skipped: 6 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

🛠️ Fix failing CI checks 💡
  • 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
brennanb2025 merged commit 9efce92 into main Oct 12, 2026
45 of 49 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/resume-status-keeps-resumed branch October 13, 2026 06:55
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