Repository navigation
fix: stop recommending onboarding for OpenClaw runtime failures - #166234
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 2:14 AM ET / 06:14 UTC (Revision 3). ClawSweeper reviewWhat this changesOpenClaw’s setup and repair helper gives failure-specific recovery advice while preserving onboarding guidance when verified inference is missing. Merge readiness✅ Ready for maintainer review This PR remains necessary: current main and v2026.9.8 still recommend onboarding for unrelated runtime failures. No blocking correctness finding remains, and the recorded Gateway differential provides sufficient behavior proof. Priority: P2 Review scores
Verification
How this fits togetherThe setup and repair helper runs user requests through a verified model route. Its turn, planner, CLI, and chat owners report failures through a shared public error formatter. flowchart TD
A[User repair request] --> B[Verified model route]
B --> C[Helper turn or planner]
C --> D[Failure classification]
D --> E[Shared error formatter]
E --> F[Recovery guidance]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +84, Tests +114. Total +198 across 13 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep recovery advice tied to producer-known failure facts through the existing formatter, with runtime admission repair tracked separately. Do we have a high-confidence way to reproduce the issue? Yes: current-main source maps runtime failures to the onboarding message, and the supplied Gateway differential demonstrates that mismatch through actual helper calls. This review did not execute target code. Is this the best way to solve the issue? Yes: selecting guidance at existing failure producers preserves the shared formatter and avoids changing runtime admission, routing, or approval policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5d4484b6ba69. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
@clawsweeper re-review The PR body now records measured one-worker command wall times for all six materially changed test files (84 tests passed on the unchanged reviewed head), plus the completed current-head CI elapsed time and summed Node test-job seconds. The production dependency audit and its two propagated gate failures are explicitly separated from the passing source/test/type/lint jobs. No source, dependency, or CI-policy changes were made. |
|
🦞👀 Re-review progress:
|
199f284 to
8e63612
Compare
|
Validated exact head
This guidance change and #166235 touch disjoint files and merge cleanly; this PR can land independently. |
|
Landed in e991632. Thanks @PollyBot13! Verified on a built Gateway: helper timeouts and an unavailable/superseded runtime now give failure-specific guidance instead of telling users to run |
…claw#166234) Give the OpenClaw helper failure-specific recovery guidance (retry, logs, route verification, compatible runtime) when a verified route is healthy but a turn times out, its runtime becomes unavailable, or its route changes, instead of recommending openclaw onboard. Related: openclaw#139710 Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #139710. Also covers the misleading recovery advice consolidated from #166138.
What Problem This Solves
Fixes OpenClaw helper failures recommending
openclaw onboardwhen a verified route is healthy but a turn times out, its runtime becomes unavailable, or its verified route changes.User Impact
Users get failure-specific retry, log, route-verification, or compatible-runtime guidance instead of being told to rerun onboarding for unrelated runtime failures. A missing verified binding still recommends setup.
Why This Change Was Made
Existing failure producers know whether setup is missing, a request failed, a turn timed out, an owner could not admit the runtime, or route revalidation failed. This change passes that distinction to the existing bounded public error formatter. Broad owner-not-published failures are not falsely described as definitely superseded.
This is only the guidance half of #139710: it does not retry stale generations or change runtime admission, routing, CLI restrictions, approvals, or failed-turn cleanup. The admission repair is a separate focused candidate.
Evidence
openclaw onboard. Final focused producer/cleanup tests: 84/84 passed through the maintained wrapper.openclawcalls (not a mocked runner): the stable same-agent control completes; patching the same caller session to a non-default bundledlitellmprovider reproduces pre-dispatch helper admission failure on both baseline and this guidance-only candidate. The candidate changes the advice without masking the failure.maxTokenshot reload prevents a second helper dispatch; guidance now recommends a new conversation to verify the route, not onboarding.build-all.mts qaRuntimepassed; declaration/release packaging is not claimed.Redacted Gateway observations and reproduction shape
Fixture uses the repository's maintained test-instance, Gateway client and Responses SSE helpers. The provider serves configured synthetic models with fixture-only keys; no production provider or service is used. Configured helper route is
openai/proof-default; only the samemaincalling session is patched tolitellm/proof-override. The selected non-startup provider creates a different run generation; normal caller inference still succeeds.Top-level
agent.waitcan returnokwhen the caller reports a tool error; evidence above uses actual tool output and provider dispatch counts, not that misleading aggregate. Gateway proof production source bytes are unchanged by the final test-only catch-annotation lint correction.One-worker test cost and completed CI timing
Exact head:
199f28459514fdb0eb5108638ad41af743cdedcd. Measured on macOS with Node 24.21.0, existing dependencies, one file per sequential invocation ofpnpm test src/system-agent/<file> --maxWorkers=1. These are end-to-end command wall times, including the maintained wrapper, compiler/import preparation, and cleanup—not just test-body execution. All six files passed (84 tests total); no new worker pin or serial configuration was added.agent-turn.terminal.test.tsagent-turn.test.tsassistant.configured.test.tschat-engine.test.tssystem-agent.test.tstui-backend.test.tsCompleted original-head CI run: 511 s elapsed from run creation to completion. All 24 selected Node test jobs passed; their summed job wall time was 4,428 runner-seconds, including setup/cleanup and unchanged tests in their shared shards (not an incremental cost attributable to this patch). The
checks-node-changedandchecks-node-changed-boundaryjobs took 363 s and 96 s, respectively. Local per-file timings above isolate the changed files; CI job timings do not.Original-head CI was not green:
security-fastfailed its production dependency audit on GHSA-6qxp-vccf-f47h in unchanged MCP dependencies; the check-run and status-contextopenclaw/ci-gatefailures propagate that same leaf failure. This PR changes no package manifest, lockfile, or audit policy. Source, test, type, and lint jobs passed; no audit bypass or speculative dependency repair is included.CI baseline refresh — October 7
Rebased the unchanged patch from
199f28459514fdb0eb5108638ad41af743cdedcdonto main0d06bc0fec0129608ed04ed286e7e1e2c28021e3, which includes the merged MCP dependency repair #166217. Refreshed head:8e636124a56216cab59b59e059be04260704dd76. An independent Astra review verified identical per-parent patches and every PR-owned source/test blob, with no refresh-induced finding. No manifest, lockfile or audit-policy change is added by this PR.node scripts/run-vitest.mjsfocused regressions/controls: 84/84 passed (45.03 s). These local runs reuse the pre-refresh installed SDK 1.30.1/fs-safe 0.24.0 snapshot and supplement source validation, not clean-install compatibility. Hosted CI must validate the tracked SDK 1.31.0/fs-safe 0.24.1 dependencies.Owner acceptance: one failure-guidance change across existing producers and their tests; no runtime policy or persistent-data migration. Rollback is reverting this patch. It does not claim to fix every reload/retained-work failure or close #139710 alone.
AI-assisted: implementation and independent review assisted by Codex.