Skip to content

fix(chat): clear "Needs attention" after a recovered provider crash (CLO-1319) - #247

Open
nullStack65 wants to merge 2 commits into
release/native-0.1.10from
fix/clo-1319-recovered-crash-attention
Open

nullStack65 wants to merge 2 commits into
release/native-0.1.10from
fix/clo-1319-recovered-crash-attention

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Problem

After a provider crash that the thread recovered from (a later run replied), the activity pill stayed on ⚠ Needs attention and the error stayed expanded. The pill also read "16 updates" when all sixteen were tool calls. Reported in CLO-1319.

Change

  • chatActivityContext (packages/client-runtime/src/chatActivity.ts): a failed provider error item, and a failed or interrupted run, count as recovered once a later run that did not itself end badly replies or makes a successful tool call. Recovered ones fill recoveredItemIds and recoveredRuns, as fix(web): badge Needs attention only for unrecovered tool failures #235 does for tool calls. A completed provider retry ("Provider recovered") no longer needs attention. This changes fix(web): badge Needs attention only for unrecovered tool failures #235's "error items never recover" for failed provider errors only.
  • summarizeChatActivity: the "N updates" fallback counts only rows a person reads. A group with only tool rows reads "Tool activity". Failed provider errors count as "error". Web (activityUpdateSummary) and mobile (foldThreadFeedActivity) pass the tool row count.
  • The failed state of the thread-model-settings tool now reads "Could not apply this thread's model settings". The i18n key is renamed in all ten locales, with the clause translated by hand, in web and mobile.

Scope

Bug fix in shared client code for CLO-1319 (Linear). Not covered: whether the failed model-settings call was retried (the client does not know), and why the Claude process was SIGKILLed (no cause found in the repo; left open on the issue).

Verification

  • chatActivity.test.ts 32 pass (new: crash recovered by reply and by tool call, crash after last progress stays, later failed run or failed tool does not recover, completed retry is not attention, summary labels).
  • MessagesTimeline.logic.test.ts 160 pass (new activityUpdateSummary case). Mobile src/features/threads 394 pass.
  • vp fmt clean; lint shows no new findings in touched files.
  • pnpm i18n:check (Node 26) lists only keys missing from en.json that were already missing on base (/note, "Unreachable", lineage). My renamed key is not listed.
  • Pre-existing and unrelated: typecheck errors in Sidebar.logic.test.ts and botOrgTree.test.ts (PR chore(knip,types): make the base pass the commit and push hooks (CLO-1298) #246 fixes them), and lint errors in other chat files.
  • Not checked: no browser run of the pill on a real recovered-crash thread.

Deploy: none

Prior art

No new tooling or homegrown component; this extends the existing recovery helper from #235. Searched: chatActivity.ts, failure.ts and the existing attention tests.

Linear: CLO-1319

🤖 Generated with Claude Code

…CLO-1319)

A failed provider error and its failed run kept the activity pill on "Needs
attention" for good, even after a later run in the same thread replied or made
a successful tool call. The pill also read "16 updates" when all sixteen were
tool calls.

- chatActivityContext treats a failed provider error or a failed/interrupted
  run as recovered once a later run that did not itself end badly replies or
  makes a successful tool call. A completed provider retry no longer needs
  attention.
- The "N updates" fallback counts only rows a person reads; tool-only groups
  read "Tool activity". Failed provider errors count as "error".
- The failed state of the thread model settings tool reads "Could not apply
  this thread's model settings" (catalogs renamed in all ten locales).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • 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

The conversation timeline map entry now says the agent updates strip's
count skips tool-call rows, matching this PR's MessagesTimeline change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nullStack65

Copy link
Copy Markdown
Owner Author

Repair worker note on the failed "Feature map and click QA (Linux ARC)" check at head b0e107b.

  • CI run 46234661386 failed 3 of 126 click specs, all on desktop-light: sidebar.thread-list, sidebar.thread-menu and settings.auto-resume. The same specs passed on phone-dark in that run. This PR doesn't touch the sidebar or settings code.
  • Locally, on this same head, I ran the full desktop-light and phone-dark suite the way CI runs it (T3_QA_BASELINES=ci, Node 26.13.1). Result: 125 passed, 0 failed in 10.8 minutes. Running the sidebar and settings specs on their own also gave 32 of 32 passed.
  • The earlier map-check failure (run 46231708751) is already fixed by commit b0e107b.

These three failures look like a flaky run, not something this diff causes. I made no code change and re-ran the check on the same head.

This branch has not been deployed

No deployments
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