Skip to content

fix(ui): stop repeated warnings while model requests recover - #170820

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/swift-shrimp
Oct 13, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/swift-shrimp

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Focused Gateway projection, live transcript, paginated history, and event regressions: 93 tests passed, combining the unchanged 70-test passing subset and the final 23-test rerun (37.42s wrapper wall time).
  • Focused retry-owner, protocol, persistence, and UI clock/status/action tests passed. Recovery-history regression: 2 tests, 3.73s wrapper wall time; UI clock/notice/action batch: 28 tests, 10.41s wrapper wall time.
  • Bundled Control UI browser proof: 2 tests passed, 8.11s test time / 36.92s total. Covers retry → fallback → success, live failure → durable notice → reload, desktop/mobile/light/dark presentation, the existing model picker, and continuation without losing a draft.
  • Core and UI TypeScript checks passed. Independent autoreview completed with no actionable P0/P1 findings. Current-head CI completed; inherited-only failures are documented below.
  • CI follow-up moved the unchanged failure selector to its lifecycle owner, ported the new notice to Solid, fixed the diagnostic font token, and updated sibling receipt/projection expectations. Recovery regressions: 161 passed (165.88s wrapper); Solid notice/theme-token checks: 12 passed (8.31s); real Gateway/local provider HTTP/MCP spawn proof: 13 passed (122.15s). Lit migration/import-cycle checks, scoped lint, stylelint, and UI types passed. Independent P0/P1 review of the follow-up was clean.
  • Final bundled UI recheck: 2 passed, 10.24s test time / 42.32s total; fresh light/dark/mobile and expanded-detail captures inspected after the Solid migration. The representative collapsed before/after appearance is unchanged.
  • UI browser I/O uses a deterministic mock Gateway; spawn proof uses local synthetic provider HTTP, not live-provider testing.

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 commit 82acd0a1c02a (start naming before workspace/reply startup).
  • server.chat-membership-authority.product.test.ts: waits for a membership reread that main commit ab981e29a670 intentionally 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 aea10c9d20e4 and merge 0189dd9a8ad2. 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

Repeated provider warnings

After

One terminal failure notice

Retry status and dark-theme captures

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 13, 2026 08:12
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
roboclaw-bot marked this pull request as ready for review October 13, 2026 08:15
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Oct 13, 2026
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
roboclaw-bot enabled auto-merge (squash) October 13, 2026 08:56
@roboclaw-bot
roboclaw-bot disabled auto-merge October 13, 2026 09:11
@roboclaw-bot
roboclaw-bot merged commit b957f1a into main Oct 13, 2026
181 of 185 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/swift-shrimp branch October 13, 2026 09:28
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control UI repeats provider failures instead of showing retry progress

1 participant