Repository navigation
fix(chat): clear "Needs attention" after a recovered provider crash (CLO-1319) - #247
Open
nullStack65 wants to merge 2 commits into
Open
nullStack65 wants to merge 2 commits into
nullStack65 wants to merge 2 commits into
Conversation
…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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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]>
Owner
Author
|
Repair worker note on the failed "Feature map and click QA (Linux ARC)" check at head 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
After a provider crash that the thread recovered from (a later run replied), the activity pill stayed on
⚠ Needs attentionand 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 providererroritem, 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 fillrecoveredItemIdsandrecoveredRuns, 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.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.ts32 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.ts160 pass (newactivityUpdateSummarycase). Mobilesrc/features/threads394 pass.vp fmtclean; 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.Sidebar.logic.test.tsandbotOrgTree.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.Deploy: none
Prior art
No new tooling or homegrown component; this extends the existing recovery helper from #235. Searched:
chatActivity.ts,failure.tsand the existing attention tests.Linear: CLO-1319
🤖 Generated with Claude Code