Repository navigation
improve: simplify agent and command-execution messages - #168709
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. What this changesThis PR simplifies agent instructions and execution diagnostics and updates their existing assertions and generated fixtures. Example: An exec command reaches its 1-second timeout after potentially completing an external action.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Partial Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the wording changes preserve existing safety guidance, prior findings are resolved, and no introduced defect was found; required CI is still running. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherAgent, execution, sandbox, ACP, and automation owners translate runtime outcomes into model instructions and operator diagnostics. flowchart TD
A[Agent request] --> B[Runtime and tool owners]
B --> C[Execution and validation outcomes]
C --> D[Shared diagnostic wording]
D --> E[Model instructions]
D --> F[Operator diagnostics]
Technical reviewBest possible solution: Land the focused wording and aligned consumers after the existing required CI gates pass. Do we have a high-confidence way to reproduce the issue? The original wording is directly visible on fetched main; this editorial PR claims no runtime defect, and no target code was executed during review. Is this the best way to solve the issue? Editing prose at its existing owners and updating exact-message consumers is proportionate and preserves the original operational constraints. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9fd613fe813b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +2, Docs 0. Total +3 across 40 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 12, 2026, 3:11 AM ET / 07:11 UTC (Revision 5). |
|
0e1964c to
e1e8dcd
Compare
Integrate pinned main to resolve cron and generated prompt conflicts and inherit the backend test-environment repair. Keep the newer cron description and regenerate prompt snapshots from their owners. Update the no-output timeout assertion to retain safe-repeat guidance. Preserve main’s intentional removal of the obsolete Agents API mixed-attachment test.
fix(webchat): stage offloaded WebChat images into the managed workspace WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image. Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec. Thanks @synthalorian. Co-authored-by: Ayaan Zaidi <[email protected]>
Configuration publications refresh skills because skills can depend on arbitrary config paths. Reuse the published model-list cache when the existing catalog facts still match, while rebuilding commands and other skill-dependent metadata. Model, auth, plugin, catalog and owner changes keep their existing invalidation and read-authority boundaries. Fixes the repeated projection work exposed by 877301a (#170341): scheduled main run 38339144048 rebuilt model lists after each of six UI preference writes. The prepared-model regression also reproduced the unnecessary second projection before this change. Preserve the original integration assertion and verify that skills-dependent commands refresh alongside retained model projections. Validation: prepared-model regression fails before the repair and passes after (2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks pass. Independent Codex review completed with no actionable findings. The full Gateway freshness integration remains assigned to canonical CI.
The synchronous fixture lookup could create a database after a Gateway worker captured its absence, triggering the physical identity guard and closing admission before the initial turn. Use existing read-only worker discovery for both fixture targets, matching neighboring authority tests. Preserve all retained and revoked grant, final-write, and transcript assertions. No production guard or authorization behavior changes.
Plugin inspection resolved the explicitly supplied config, then discarded it while projecting decision providers and consulted the runtime snapshot instead. Cold inspection could fail with an unprepared runtime config; a prepared but different runtime could also report the wrong configured model. Carry the resolved config through the existing inspection context. Cover single and all-plugin inspection with different explicit and ambient models. Plugin loading, decision execution, and lifecycle ownership are unchanged. Original ambient-config lookup: cde6bbd (#152237), exposed by 7e48efb (#169714). Scheduled main 38334375513 repeats nine trust-diagnostics failures. Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed. The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s is dominated by worker build and module transforms. Independent review found no actionable defects.
* improve: simplify agent, exec, and automation messages * fix(webchat): stage offloaded images for file tools (openclaw#168537) fix(webchat): stage offloaded WebChat images into the managed workspace WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image. Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec. Thanks @synthalorian. Co-authored-by: Ayaan Zaidi <[email protected]> * fix(gateway): retain model lists across skills refreshes Configuration publications refresh skills because skills can depend on arbitrary config paths. Reuse the published model-list cache when the existing catalog facts still match, while rebuilding commands and other skill-dependent metadata. Model, auth, plugin, catalog and owner changes keep their existing invalidation and read-authority boundaries. Fixes the repeated projection work exposed by 044ae43 (openclaw#170341): scheduled main run 38339144048 rebuilt model lists after each of six UI preference writes. The prepared-model regression also reproduced the unnecessary second projection before this change. Preserve the original integration assertion and verify that skills-dependent commands refresh alongside retained model projections. Validation: prepared-model regression fails before the repair and passes after (2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks pass. Independent Codex review completed with no actionable findings. The full Gateway freshness integration remains assigned to canonical CI. * test(gateway): resolve auth-policy session targets in workers The synchronous fixture lookup could create a database after a Gateway worker captured its absence, triggering the physical identity guard and closing admission before the initial turn. Use existing read-only worker discovery for both fixture targets, matching neighboring authority tests. Preserve all retained and revoked grant, final-write, and transcript assertions. No production guard or authorization behavior changes. * fix(plugins): retain inspected config for decision diagnostics Plugin inspection resolved the explicitly supplied config, then discarded it while projecting decision providers and consulted the runtime snapshot instead. Cold inspection could fail with an unprepared runtime config; a prepared but different runtime could also report the wrong configured model. Carry the resolved config through the existing inspection context. Cover single and all-plugin inspection with different explicit and ambient models. Plugin loading, decision execution, and lifecycle ownership are unchanged. Original ambient-config lookup: 0a54fc6 (openclaw#152237), exposed by 5dbf215 (openclaw#169714). Scheduled main 38334375513 repeats nine trust-diagnostics failures. Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed. The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s is dominated by worker build and module transforms. Independent review found no actionable defects. * fix: allow test builds in containers without systemd (openclaw#170640) --------- Co-authored-by: synth <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Independent PR targeting
main; no other wording PR needs to merge first. Cleanup index.Related: #168322
What Problem This Solves
Agent and command-execution messages use avoidable technical shorthand.
User Impact
Execution errors and automation guidance are clearer. Execution, timeout, and approval behavior do not change.
Why This Change Was Made
Keep wording and its existing exact-message consumers together. The no-output timeout expectation now checks the same safe-repeat warning as its producer. Main's removal of the obsolete Agents API attachment test is preserved, as is the current cron guidance; prompt fixtures are regenerated by their owner.
Evidence
f1d6b26fe82b; main integrated throughcaae050cc10c.auth ensure failed→auth setup failed.Proof-only ClawSweeper suggestions remain nonblocking under the maintainer’s instruction unless they identify concrete likely breakage. Required CI, enforced reviews and correctness findings remain in scope.
Earlier validation and repair history
Review follow-up
The shared PR-wrapper inventory repair from main (via #169547) is incorporated through a signed merge. The inventory fix itself is not part of this wording PR’s residual diff; new-head hosted gates are tracked separately.
The landed shared CI owner repair is also incorporated through a signed merge of pinned main
1f5c14590afaaea66944ef6b36e76236b0618e6b. All seven repaired owner files match landed main and stay outside this PR’s residual wording changes. The 40 wording files and their existing safety assertions are unchanged from the prior corrected head, so their focused consumer proof is reused. Fresh exact-head hosted CI and review are tracked separately.The two subsequent CI assertion failures are addressed by incorporating pinned main
e15926132cd9d5f6d635562a81ea6eed5d959806, including the projection startup/retry fixture repair and current-turn chat cleanup repair. Both owner repairs remain outside the unchanged 40-file wording delta. The canonical projection case passes (1 selected, 140 unselected; wrapper 52.54s), and the original Gateway pair passes all 88 cases plus its preceding guard (171.19s wrapper). Gateway owner/runtime inputs are unchanged; a sole added worker-test selection entry does not affect that explicit pair. Prior unrelated consumer proof is reused. The hosted anonymous-row failure did not reproduce locally, so the passing replay is not claimed as a flake diagnosis. Fresh exact-head CI and review remain separate.