Repository navigation
fix(ui): stop repeated warnings while model requests recover - #170820
Merged
Merged
Conversation
Show retry and fallback progress beside the working claw. Let terminal run receipts own failure notices, preserve partial output, and offer explicit recovery without clearing drafts. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 97a06c71-e127-4252-974c-459cd94c37f3
roboclaw-bot
marked this pull request as ready for review
October 13, 2026 08:15
Contributor
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
Align recovery boundary assertions with authoritative terminal receipts, retain the failure selector under the run lifecycle owner, and use the canonical diagnostic font token. Co-authored-by: steipete <[email protected]>
roboclaw-bot
enabled auto-merge (squash)
October 13, 2026 08:56
roboclaw-bot
disabled auto-merge
October 13, 2026 09:11
Collaborator
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
This was referenced Oct 13, 2026
steipete
added a commit
that referenced
this pull request
Oct 13, 2026
## What Problem This Solves Scheduled main fails the incomplete-stream and terminal recovered-output cases because their assertions still expect failure copy and error metadata on assistant messages. The verified culprit is b957f1a (#170820), which deliberately separates authored partial output from the run-owned failure notice. Update both Gateway fixtures to retain partial assistant output and require one durable failure receipt for the started run. The recovered-output fixture also requires exactly one live `chat.error`; custom transcript receipts are persisted in history and do not publish through `session.message`. Preserve zero execution of incomplete tools, retry counts, assistant publication, and exactly-once effects. No production behavior changes. ## Evidence - Main run [38378024699](https://github.com/openclaw/openclaw/actions/runs/38378024699): jobs 115231440064 and 115231445890 contain the original failures. - The incomplete-stream case passed in [PR CI job 115239150688](https://github.com/openclaw/openclaw/actions/runs/38380241269/job/115239150688), 14.227 seconds. That file is unchanged by the follow-up correction. - Initial PR CI passed continuation, fallback and settled-write cases but rejected the first fixture's expectation of a custom notice in live messages. The correction follows `recordGatewaySessionRunFailure`, the transcript report kernel, and `emitChatTerminal`: persist the receipt, then emit the live error. The corrected candidate passed all five recovered-output cases in [PR CI job 115245143256](https://github.com/openclaw/openclaw/actions/runs/38382045299/job/115245143256): terminal 3.933 seconds, no-fallback 1.826 seconds; Vitest 73.22 seconds. The unchanged incomplete-stream case also passed again in 10.305 seconds (Vitest 43.28 seconds). - Changed-file formatting, lint, whitespace checks and normal commit hooks pass. Two isolated Codex review rounds completed; the final correction is scoped-clean with no actionable findings. No local suite, build, Knip or type scan ran. - Test-only: +43/-5; production LOC 0. SQL statements/requests and T1 unchanged; no performance claim or harness. No production checks removed, schema/SDK/update-path change, or new accepted edge case.
This was referenced Oct 13, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…w#170820) * fix(ui): stop repeated warnings while model requests recover Show retry and fallback progress beside the working claw. Let terminal run receipts own failure notices, preserve partial output, and offer explicit recovery without clearing drafts. Co-authored-by: steipete <[email protected]> * fix(ui): stop repeated warnings while model requests recover Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 97a06c71-e127-4252-974c-459cd94c37f3 * fix(ui): render terminal failures with the Solid lifecycle Align recovery boundary assertions with authoritative terminal receipts, retain the failure selector under the run lifecycle owner, and use the canonical diagnostic font token. Co-authored-by: steipete <[email protected]> --------- Co-authored-by: steipete <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…70926) ## What Problem This Solves Scheduled main fails the incomplete-stream and terminal recovered-output cases because their assertions still expect failure copy and error metadata on assistant messages. The verified culprit is d4caae2 (openclaw#170820), which deliberately separates authored partial output from the run-owned failure notice. Update both Gateway fixtures to retain partial assistant output and require one durable failure receipt for the started run. The recovered-output fixture also requires exactly one live `chat.error`; custom transcript receipts are persisted in history and do not publish through `session.message`. Preserve zero execution of incomplete tools, retry counts, assistant publication, and exactly-once effects. No production behavior changes. ## Evidence - Main run [38378024699](https://github.com/openclaw/openclaw/actions/runs/38378024699): jobs 115231440064 and 115231445890 contain the original failures. - The incomplete-stream case passed in [PR CI job 115239150688](https://github.com/openclaw/openclaw/actions/runs/38380241269/job/115239150688), 14.227 seconds. That file is unchanged by the follow-up correction. - Initial PR CI passed continuation, fallback and settled-write cases but rejected the first fixture's expectation of a custom notice in live messages. The correction follows `recordGatewaySessionRunFailure`, the transcript report kernel, and `emitChatTerminal`: persist the receipt, then emit the live error. The corrected candidate passed all five recovered-output cases in [PR CI job 115245143256](https://github.com/openclaw/openclaw/actions/runs/38382045299/job/115245143256): terminal 3.933 seconds, no-fallback 1.826 seconds; Vitest 73.22 seconds. The unchanged incomplete-stream case also passed again in 10.305 seconds (Vitest 43.28 seconds). - Changed-file formatting, lint, whitespace checks and normal commit hooks pass. Two isolated Codex review rounds completed; the final correction is scoped-clean with no actionable findings. No local suite, build, Knip or type scan ran. - Test-only: +43/-5; production LOC 0. SQL statements/requests and T1 unchanged; no performance claim or harness. No production checks removed, schema/SDK/update-path change, or new accepted edge case.
This was referenced Oct 15, 2026
This was referenced Nov 3, 2026
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.
Closes #170798
What Problem This Solves
Fixes repeated provider-error warnings in chat while a model request is retrying or falling back.
User Impact
Recovery stays in the working claw row: Retrying…, a real retry countdown when available, or Trying fallback model…. Only a settled failed run gets one compact failure notice with a line icon, Try again, Change model, and expandable details. Partial output and unsent drafts remain intact.
Why This Change Was Made
The terminal lifecycle now owns the durable failure notice. Failed attempt rows cannot suppress it, and history no longer guesses that an attempt was terminal because its run is absent from an active snapshot. Live events, history reloads, and in-flight status replay use the same run identity.
Try again sends a continuation asking the agent to check completed actions, rather than replaying the original prompt. Changing models opens the existing picker; neither action clears a draft.
No database schema change or transcript rewrite. Old run-attributed attempts without terminal receipts remain in raw history but are no longer promoted into terminal notices. Unattributed legacy diagnostics retain their existing display. Countdown support follows owner-reported deadlines; native harness-internal retry normalization is unchanged.
Evidence
CI result
Current-head CI run completed all 119 jobs. Build, UI tests/E2E/performance, types, lint, docs, Android, and security-fast passed. Two unchanged baseline test inputs failed, plus their aggregate gate:
server.sessions.create.titles.test.ts: two cases still require title generation to wait for dispatch, contrary to main commit82acd0a1c02a(start naming before workspace/reply startup).server.chat-membership-authority.product.test.ts: waits for a membership reread that main commitab981e29a670intentionally replaces with prepared committed authority. The failure occurs before the test performs its revocation.Both tests and their causal owners are byte-identical between the actual tested main
aea10c9d20e4and merge0189dd9a8ad2. This is source-proven baseline attribution, not a claimed baseline test replay. Landing uses the native inherited-only exception; failed CI is not relabeled green, and security/review gates remain required. Earlier Doctor/requester timing failures were not claimed fixed by these UI changes.Before
After
Retry status and dark-theme captures
Worked on by
Work sessions
View the OpenClaw team session