Skip to content

fix: resume configured fallback after interrupted attempts - #188672

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/configured-fallback-continuation
Oct 30, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/configured-fallback-continuation

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: a configured fallback can report the backup model yet send no backup request and return a silent result after an interrupted primary attempt.

User Impact

User impact: configured fallback attempts can continue the unanswered turn after operational model-switch notices and owner-classified timeouts.

Why This Change Was Made

The existing persisted-turn replay owner now treats a model-fallback notice as operational bookkeeping rather than a completed answer. It also receives the existing fallback reason so a same-run timeout abort can continue. Direct and historical aborts and current source, target, writer, lifecycle, and cancellation checks retain their existing boundaries.

Evidence

  • Original reply, cron strictness, timeout, and streamed-recovery boundaries (F1–F4) have qualified supporting proof. The original cron timeout reproduced the silent, primary-only failure on the base and passed with the repair. Final affected routes exercised real scripted HTTP provider requests under Node 24 and checksum-pinned OpenClaw Bun.
  • 58 existing replay-owner case instances passed across bounded selections, including current-authority and direct/historical-abort negatives; this was not a single uninterrupted full-file run. All 14 prompt-prefix stability cases passed. No tests or assertions changed.
  • Focused strict typecheck, source-backed lint, formatting, unchanged test-line ratchet, and diff checks passed. Independent local autoreview of the complete two-file snapshot against edeae71308d8 was scoped-clean at P0–P2 with no findings. The committed source is byte-identical to that reviewed snapshot.
  • The separate original Gateway boundaries F5 (recovered terminal content/notice prefix), F6 (the 180-second timeout), and F7 (spawned/hidden/direct ladders) were not executed successfully through setup and remain UNKNOWN. F6's reached stage and timeout cause remain independently unknown. These are not repair passes or a claim that all seven failure families share a cause. Public model listing and external provider/SDK availability are also unverified; no live paid provider was used.
  • Repository PR CI supplies the pending broad proof for this head.

Requested by @steipete

Work sessions

Discussion, implementation and verification

Treat operational fallback notices as unfinished turns and carry the existing
timeout classification into same-run transcript continuation. Preserve the
current replay authority and historical/direct-abort boundaries.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Oct 30, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 30, 2026 20:12
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@roboclaw-bot
roboclaw-bot merged commit 9114431 into main Oct 30, 2026
194 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot
roboclaw-bot deleted the fix/configured-fallback-continuation branch October 30, 2026 20:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
…188672)

<!--
Optional linked context:
Add a visible `Closes #<issue-number>` or `Related: #<issue-number>` line
below this comment.

Required PR title:
type: user-facing description
Use a parenthesized scope only when it adds clarity:
fix(auth): login redirect loops when session cookie is expired

Types: feat, fix, improve, refactor, docs, chore.
For fixes, describe the user-visible symptom and trigger:
fix: task list fails to load when user has no environments
Avoid implementation details such as:
fix: add null check to task query

**MUST:** Keep **Allow edits from maintainers** enabled for this PR so maintainers
can help update the branch when needed.
-->

## What Problem This Solves

<!--
Describe the concrete user, product, or operational problem.
Use one short, plain-language sentence. For fixes, prefer:
"Fixes: <what goes wrong> when <trigger or condition>."
For other changes, describe the need without inventing a bug.
Name the affected workflow, not the code-level cause.
-->

Fixes: a configured fallback can report the backup model yet send no backup request and return a silent result after an interrupted primary attempt.

## User Impact

<!--
"User impact: <what users, operators, or developers can now do or expect>."
Lead with the concrete outcome in plain language, usually one sentence.
For internal-only changes, say there is no user-visible change; do not invent a benefit.
Keep important risks, breaking changes, migrations, and required user actions visible here.
-->

User impact: configured fallback attempts can continue the unanswered turn after operational model-switch notices and owner-classified timeouts.

## Why This Change Was Made

<!--
Briefly explain how the change addresses the problem without repeating the impact.
Keep the body short. Leave file lists, internal acronyms, and root-cause walkthroughs
in the diff or optional <details>; include technical detail only when it explains
behavior or a material tradeoff. Do not hide risks or required actions in <details>.
-->

The existing persisted-turn replay owner now treats a model-fallback notice as operational bookkeeping rather than a completed answer. It also receives the existing fallback reason so a same-run timeout abort can continue. Direct and historical aborts and current source, target, writer, lifecycle, and cancellation checks retain their existing boundaries.

## Evidence

<!--
Show the most useful proof that this change works. Screenshots, screencasts,
terminal output, focused tests, CI results, live observations, redacted logs,
and artifact links are all useful. For user-visible UI changes, follow the root
AGENTS.md "Product and validation" screenshot completion/landing gate; these other
forms of evidence do not replace the required screenshots in chat AND the PR.

Reviewers will inspect the code, tests, and CI. Use this section to make the
validation easy to understand, not to restate the diff.
Summarize what was checked and the result; note meaningful gaps. Link long output
or put it in optional <details>, keeping the useful evidence summary visible.
-->

- Original reply, cron strictness, timeout, and streamed-recovery boundaries (F1–F4) have qualified supporting proof. The original cron timeout reproduced the silent, primary-only failure on the base and passed with the repair. Final affected routes exercised real scripted HTTP provider requests under Node 24 and checksum-pinned OpenClaw Bun.
- 58 existing replay-owner case instances passed across bounded selections, including current-authority and direct/historical-abort negatives; this was not a single uninterrupted full-file run. All 14 prompt-prefix stability cases passed. No tests or assertions changed.
- Focused strict typecheck, source-backed lint, formatting, unchanged test-line ratchet, and diff checks passed. Independent local autoreview of the complete two-file snapshot against `7870c4995758` was scoped-clean at P0–P2 with no findings. The committed source is byte-identical to that reviewed snapshot.
- The separate original Gateway boundaries F5 (recovered terminal content/notice prefix), F6 (the 180-second timeout), and F7 (spawned/hidden/direct ladders) were not executed successfully through setup and remain UNKNOWN. F6's reached stage and timeout cause remain independently unknown. These are not repair passes or a claim that all seven failure families share a cause. Public model listing and external provider/SDK availability are also unverified; no live paid provider was used.
- Repository PR CI supplies the pending broad proof for this head.

Requested by @steipete

## Work sessions

[Discussion, implementation and verification](https://team.openclaw.ai/chat/roboclaw/~key/dashboard/b5679712-7777-4ff7-a05a-81c1efab2069)

Co-authored-by: steipete <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 5, 2026
Backport accepted fixes onto 2026.11.5-beta.2.

Base: bc061f9
Canonical source tree before commit: e6c0c39

These are adapted/squashed backports; do not claim each is an exact Git cherry-pick.
Source provenance (selected verified commits; other cohorts use their frozen patch/adoption manifests):

runtime-B:
b20a0cc fix(macos): connect with configured credentials despite stale app environment (#191468)
c4c0942 fix(update): failed updates from 10.7–10.9 crash in automatic migration recovery (#189713)
6aae408 fix(update): preserve recovery errors and async triage callbacks (#191495)
8910654 fix(macos): prevent first-launch Gateway failures after upgrades (#191436)
00b2ff4 fix: parent sessions miss child approvals with a custom session store (#189827)
c6142a8 fix: avoid copying managed plugin binaries during Gateway startup (#187865)
e72b356 fix(anthropic): avoid token profile collisions (#187875)
807075d fix(anthropic): set API workspace at login (#186976)
bafe92f fix(exec): preserve no-timeout results from macOS app nodes (#190729)
9b05a64 fix(imessage): use a PostgreSQL-safe recovery cursor key (#184919)
6ba197f fix: session search on PostgreSQL scans every transcript row instead of using the text index (#187909)
4f49aa5 fix(sessions): PostgreSQL session search scans every transcript row again after the 5th search on a connection (#188979)
de3936c fix(macos): Mac tab shows a blank or stale page when a load fails (#185432)
e977080 fix(macos): prevent duplicate voice sends and false sent feedback (#186271)

provider-compaction:
1b43c2e fix(compaction): preserve active request provenance (#180214)
7b0cfe3 fix(google): restore tool calls with Python keyword parameters (#191561)
9039ceb fix(ci): keep compaction attribution helpers internal
d6a1327 feat(google): use the Interactions API for Gemini Flash models (#189395)
fe0f8d1 fix(google): Gemini models ignore configured topP (#190695)

history:
c51d733 fix(sessions): stop expanding archive reads from exhausting memory (#190690)
3c8bd4d fix(sessions): page oversized earlier history instead of failing at 8 MiB (#188450)
b195f61 fix(sessions): page oversized transcript history in both directions (#188483)
b65482e fix(gateway): preserve older history across hidden message gaps (#188557)
3d4fc94 fix(sessions): avoid oversized listing and imported-history reads (#189284)
33e7baf fix(sessions): bound active accounting without blocking writers (#190182)
682ade7 fix: preserve chat history continuation metadata (#188612)

runtime-C:
7e005b0 fix(macos): keep secrets when a Gateway config save fails (#187734)
15cf738 fix(macos): keep Gateway auth when Tailscale exposure is turned off (#187664)
b53a06b perf(update): read candidate state inventory without copying the shared database (#187921)
970fc4e fix: restore CLI message sends with agent tool policies (#188058)
73ad731 fix: stop model fallback when session capability metadata changes (#179312)
32305db fix: subagent turns fail after session metadata changes (#183501)
d13bd0f fix(codex): include relay conversation instructions in trajectory (#189005)
e375530 fix: replies after a plugin reload from Control UI go to the session's last external chat (#190982)
9346376 fix: reasoning-only retry is refused by Anthropic as reasoning_extraction (#184434)

direct-auth-state:
1b15408 fix(models): keep the model list when one plugin-owned provider lacks a credential (#189014)
7d8dc60 fix: recover startup migration with retained worker index (#189023)

capacity:
41772e3 fix(worktrees): settle completed disk debt on refused postchecks (#188727)

command-once-189369:
8269137 fix(plugins): plugin commands that continue the agent run three times on native command turns (#189369)

pg-board-189564:
7232a8d fix(boards): publish widgets with PostgreSQL storage (#189564)

queued-edit-189869:
92b32ca fix: hold queued messages through inline edits (#189869)

Preserve source attribution from original commits. For a genuinely exact individual pick only, use the conventional (cherry picked from commit <sha>) line.
Full file-level provenance: coverage-manifest.json; reviewed patch hashes: artifact-registry.json.
No held136/native82 content adopted by this work. No release or full-candidate qualification claim.

Additional original-source identities (exact adapted hunk scope is in frozen artifacts):
release-guides-185258: 39c37e6 docs(release): define ledger-first hotfix routing (#185258)
UI-history: 10a6e4f fix(ui): scope provider-add discovery warning to its own provider (#188541), 3d7b4c4 fix(ui): never fail loading earlier chat history without a boundary (#188372)
obsolete-cache-188203: 90d82c2 fix: preserve completed reasoning and refill chat snapshots (#188203)
webhook-169778: b1f643f fix(startup): keep webhook decisions startup recorded for channels Doctor left pending (#169778)
schema-lease-188391: ba6cfcd fix(state): keep lease renewal independent of parent admission (#188391)
backfill-188976: c75a8a8 fix(gateway): stop session row backfill once the Gateway is closing (#188976)
canonical-disable-188846: 88b56ee fix(config): auto-enable reads and writes mixed-case plugin policy under the canonical id (#188846)
matrix-177272: 5a6d22c fix(matrix): stop seeding new thread sessions from the room transcript (#177272)
provider-hook-189059: 0588f51 fix(models): isolate every per-provider catalog failure (#189059)
unicode-189868: 87396e7 fix(oc-path): avoid reading and editing a different Unicode key (#189868)
replay-cohort: 2031044 fix(sessions): acknowledge committed input retries without duplicate turns (#188527), 9114431 fix: resume configured fallback after interrupted attempts (#188672)

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant