Repository navigation
Conversation
…ptors (openclaw#125045) The claude-cli and gemini-cli backend descriptors spread CLI_FRESH/RESUME_WATCHDOG_DEFAULTS into config.reliability.watchdog. Those copies are byte-identical to the fallback pickWatchdogProfile already uses, so shipping them only makes `configured` always truthy, which permanently disables the promotion gate (!configured) and pins resumed cron/explicit-timeout turns to the 180s resume no-output ceiling instead of the 600s fresh ceiling. Removing the blocks lets `configured` be undefined, restoring the promotion gate. No user-config path is affected: reliability.watchdog is not exposed in the config schema, the descriptor is the sole source, and pickWatchdogProfile is the only runtime reader. The codex backend never shipped the block, so this aligns the three backends. Co-Authored-By: Claude <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 6:51 AM ET / 10:51 UTC. ClawSweeper reviewWhat this changesThe PR removes copied watchdog defaults from the Anthropic and Google CLI backend descriptors and updates plugin guidance and regression coverage so eligible resumed runs inherit the shared promoted timeout. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: current main still carries the two copied descriptor watchdog profiles, while the exact head removes that duplicate policy, preserves intentional custom watchdog settings, and has no actionable correctness finding. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherBundled CLI backend plugins register process descriptors for the shared CLI runner. The runner chooses a watchdog profile from the descriptor and run context, then passes the resulting no-output deadline to the process supervisor. flowchart LR
A[Bundled CLI plugin] --> B[Backend descriptor]
C[Resume trigger and timeout] --> D[Shared watchdog policy]
B --> D
D --> E[CLI runner]
E --> F[Process supervisor]
F --> G[Silent process completes or times out]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -21, Tests +19, Docs -6. Total -8 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain watchdog selection in the shared runner, omit value-identical plugin defaults so inherited promotion works, and land after the exact-head checks complete. Do we have a high-confidence way to reproduce the issue? Yes: current main's registered Anthropic and Google descriptors supply a resumed watchdog, and the resolver's configured-value gate therefore selects the 180-second profile; this read-only review did not execute the path. Is this the best way to solve the issue? Yes: removing value-identical policy at the two producer descriptors lets the existing shared owner distinguish inheritance from intentional tuning without adding provenance machinery or a new configuration surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f830b8c1590b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
…nclaw#125045) Drive the real shipped Anthropic/Gemini CLI backend descriptor config through the production resolveCliNoOutputTimeoutMs resolver to prove the resumed-cron promotion is live post-fix. Pre-fix the descriptor shipped byte-identical resume defaults, so configured was truthy and the !configured promotion gate was dead, pinning resumed cron turns to the 180s resume ceiling (180000). Post-fix the block is gone and the resolver returns the promoted fresh budget (480000 = 600000 * 0.8). resolveCliNoOutputTimeoutMs is re-exported through the test-only openclaw/plugin-sdk/test-fixtures subpath (excluded from published dist), so extension tests can drive the real descriptor through the real resolver without crossing the extension/core boundary. Co-Authored-By: Claude <[email protected]>
|
Added real-behavior proof addressing the "no after-fix real CLI-run trace" gate. The new test drives the real shipped descriptor config (
This is the real production computation path: the shipped descriptor (no @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Move the descriptor-shape and descriptor→resolver real-behavior proof tests out of cli-shared.test.ts into cli-watchdog-promotion.test.ts. cli-shared.test.ts exceeded the extensions max-lines budget (1000 non-blank/non-comment lines) once the proof tests landed; the focused file keeps the same test names and coverage while staying under the budget. No production change. Co-Authored-By: Claude <[email protected]>
Validate bundled plugin descriptors through their public setup entries and keep custom watchdog contracts intact. Co-authored-by: ruel225 <[email protected]>
Co-authored-by: ruel225 <[email protected]>
Keep Anthropic and Google descriptor assertions inside their plugin-owned registration suites, preserve generic resumed/custom watchdog coverage in its core owner, and remove the cross-plugin core test rejected by architecture CI. Co-authored-by: ruel225 <[email protected]>
|
Merged via squash.
|
… advance 80) Resolution (13 raw conflicts; 12 ui resolved by fork-ownership policy): - pnpm-lock.yaml: regenerated via pnpm install (derived file). - extensions/openshell/src/openshell-core.test.ts (merge=ours drift): ADOPT-UPSTREAM openclaw#129258 fixture dedup + openclaw#120996 tempWorkspace migration + openclaw#126828 canonical-owner test (fork's makeTempDir shape + missing test were stale freezes of older upstream code, not fork intent). Grafted fork's one genuine delta: required SandboxConfig.osSandbox block into createOpenShellBackendSandboxConfig. - src/agents/cli-runner.reliability.test.ts (merge=ours drift): clean 3-way merge-file. Kept fork tests + upstream openclaw#125085 (codex->agent-cli literals, watchdog resume tuning test; math verified against merged reliability.ts). - src/agents/embedded-agent-runner/run/incomplete-turn-recovery.ts: ADOPT-UPSTREAM (preflight tsgo-core=1 catch: upstream consumer openclaw#128970 imports resolveSettledToolBatchEvidence which merge churn had dropped from the fork provider; export surface differs by exactly this extraction; fork toolMetas type carries toolCallId?/terminate?/isError?). - ui/src/ui/markdown.ts: explicit param types on the linkify www plugin callbacks (validate/normalize). @types/markdown-it 14.1.2->14.2.0 (upstream dep bump) dropped contextual typing for them; the fork-owned ui copy now types them inline per linkify-it's Validate/Match signatures (upstream adapted its own ui tree the same way). Only ui file needed it; tsgo:test:ui 3->0 locally. Note: ui tree-hash invariant vs main intentionally broken by this one adaptation — main's ui does not compile against the new lockfile (baseline 0 was measured with @types 14.1.2). No product-collision: no codex/** residuals.
…motion (openclaw#125045) (openclaw#125085) * fix(cli-runner): drop stock watchdog defaults from CLI backend descriptors (openclaw#125045) The claude-cli and gemini-cli backend descriptors spread CLI_FRESH/RESUME_WATCHDOG_DEFAULTS into config.reliability.watchdog. Those copies are byte-identical to the fallback pickWatchdogProfile already uses, so shipping them only makes `configured` always truthy, which permanently disables the promotion gate (!configured) and pins resumed cron/explicit-timeout turns to the 180s resume no-output ceiling instead of the 600s fresh ceiling. Removing the blocks lets `configured` be undefined, restoring the promotion gate. No user-config path is affected: reliability.watchdog is not exposed in the config schema, the descriptor is the sole source, and pickWatchdogProfile is the only runtime reader. The codex backend never shipped the block, so this aligns the three backends. Co-Authored-By: Claude <[email protected]> * test(cli-runner): add descriptor-through-resolver watchdog proof (openclaw#125045) Drive the real shipped Anthropic/Gemini CLI backend descriptor config through the production resolveCliNoOutputTimeoutMs resolver to prove the resumed-cron promotion is live post-fix. Pre-fix the descriptor shipped byte-identical resume defaults, so configured was truthy and the !configured promotion gate was dead, pinning resumed cron turns to the 180s resume ceiling (180000). Post-fix the block is gone and the resolver returns the promoted fresh budget (480000 = 600000 * 0.8). resolveCliNoOutputTimeoutMs is re-exported through the test-only openclaw/plugin-sdk/test-fixtures subpath (excluded from published dist), so extension tests can drive the real descriptor through the real resolver without crossing the extension/core boundary. Co-Authored-By: Claude <[email protected]> * test(anthropic): split watchdog promotion proof into its own file Move the descriptor-shape and descriptor→resolver real-behavior proof tests out of cli-shared.test.ts into cli-watchdog-promotion.test.ts. cli-shared.test.ts exceeded the extensions max-lines budget (1000 non-blank/non-comment lines) once the proof tests landed; the focused file keeps the same test names and coverage while staying under the budget. No production change. Co-Authored-By: Claude <[email protected]> * fix(cli-runner): restore inherited resume watchdog promotion Validate bundled plugin descriptors through their public setup entries and keep custom watchdog contracts intact. Co-authored-by: ruel225 <[email protected]> * chore(cli-runner): align conflicting provider owner with main Co-authored-by: ruel225 <[email protected]> * fix(cli-runner): complete inherited resume watchdog promotion Co-authored-by: ruel225 <[email protected]> * test(cli): keep watchdog regressions in their owning plugins Keep Anthropic and Google descriptor assertions inside their plugin-owned registration suites, preserve generic resumed/custom watchdog coverage in its core owner, and remove the cross-plugin core test rejected by architecture CI. Co-authored-by: ruel225 <[email protected]> --------- Co-authored-by: ruel225 <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Closes #125045.
The bundled Anthropic and Google CLI backend descriptors both copied OpenClaw's stock fresh and resumed watchdog profiles into their own configuration. Those copies provided no customization, but their presence made the runtime treat the resumed watchdog as explicitly configured. That permanently disabled the existing promotion for resumed cron runs and explicitly timed turns, causing legitimate silent work to be terminated after 180 seconds instead of receiving its intended longer budget.
Root Cause and Repair
src/agents/cli-runner/reliability.tsalready owns watchdog profile selection. It promotes a resumed cron or explicitly timed run only when the backend has not explicitly configured its own resumed watchdog.This change removes the duplicate stock profiles from the two backend owners:
extensions/anthropic/cli-backend.tsextensions/google/cli-backend.tsThe existing runtime owner can then select its standard profiles normally. Ordinary resumed turns retain their existing 180-second budget, while intentional custom backend watchdog settings continue to override promotion. No configuration schema, persisted state, public Plugin SDK export, or provider API changes.
The public CLI-backend authoring guide also previously taught third-party plugins to copy the same problematic defaults. Its worked example now inherits the standard policy, and its existing
reliability.watchdogcontract explains when intentional custom tuning is appropriate.Evidence
The plugin-owned Anthropic regression captures its actual full plugin registration; the plugin-owned Google regression captures its actual public setup registration. Both assert that the registered backend descriptor leaves its resumed watchdog unset so the shared runtime owner can choose the correct standard profile. Existing generic core watchdog tests cover resumed cron, explicitly timed, and ordinary runs; a new adjacent case verifies that an intentional custom backend watchdog still wins. Core tests do not import bundled-plugin surfaces, and no test-only SDK exports are needed.
Before the production fix, both plugin-owned regressions fail on their real registered descriptors:
After removing the duplicate profiles, both provider regressions pass, and the repository's complete plugin/core boundary suite passes:
A separate live production-boundary probe used each genuine registered backend descriptor, the production watchdog resolver, the production process supervisor, and a real silent Node child process. Its child environment was empty. To avoid waiting several minutes, the exact resolved production budgets were explicitly scaled by 1,000 for process execution; the child remained silent for 260 ms:
[ {"plugin":"anthropic","phase":"before","resolvedMs":180000,"scaledWatchdogMs":180,"result":"no-output-timeout","stdout":""}, {"plugin":"anthropic","phase":"after","resolvedMs":480000,"scaledWatchdogMs":480,"result":"exit","stdout":"provider-completed"}, {"plugin":"google","phase":"before","resolvedMs":180000,"scaledWatchdogMs":180,"result":"no-output-timeout","stdout":""}, {"plugin":"google","phase":"after","resolvedMs":480000,"scaledWatchdogMs":480,"result":"exit","stdout":"provider-completed"} ]Generic owner and process-supervisor tests also cover the complete promotion and operating-system lifecycle:
The final changed-surface gate passed plugin-boundary checks, targeted lint, all three relevant TypeScript programs, doctor-contract regression tests, formatting, and architectural guards. The unrelated repository-wide dead-export scan was skipped using its documented opt-out because this change modifies no exports.
The prior hosted build correctly rejected an earlier cross-boundary core regression test. That test has been removed entirely; coverage now lives with the actual plugin owners and the generic core owner. Fresh exact-head hosted CI will validate the updated contributor branch.
Change Size
+1/-22, net -21 lines.+6/-12, net -6 lines.+25/-6, net +19 lines.