Repository navigation
fix(config): clarify bootstrap creation and context injection - #118755
Conversation
|
Codex review: blocked before merge. Reviewed September 20, 2026, 1:47 PM ET / 17:47 UTC (Revision 12). ClawSweeper reviewWhat this changesClarifies workspace-file creation versus embedded-runtime prompt injection in configuration help and reference docs, groups workspace labels, extends help-quality checks, and refreshes generated fingerprints. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: the clarification remains useful, and the previous runtime-scope finding is resolved. No blocking defect remains in the reviewed patch; the refreshed visual proof supports the changed help. Priority: P3 Review scores
Verification
How this fits togetherConfiguration metadata supplies field descriptions and labels to the CLI schema and Control UI. These settings distinguish creating workspace files from including their contents in embedded-agent prompts. flowchart LR
A[Configuration definitions] --> B[Help and label metadata]
B --> C[Schema generation]
C --> D[CLI schema output]
C --> E[Control UI settings]
F[Workspace runtime behavior] --> B
Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests +2, Docs +1, Generated 0. Total +10 across 7 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. Technical reviewBest possible solution: Keep creation and injection controls distinct, with shared help accurately describing the existing embedded-runtime boundary and preserving all stored settings. Do we have a high-confidence way to reproduce the issue? Not applicable as a runtime defect: this PR corrects help text, whose omission is directly visible in current-main source and the supplied before screenshot. Is this the best way to solve the issue? Yes. Updating the existing shared metadata and reference docs resolves the ambiguity without repurposing skipBootstrap or expanding runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f7ac2dd6bad. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Clarify creation-only skipBootstrap guidance, embedded-only default and per-agent injection modes, and continuation eligibility. Keep configuration validation and runtime behavior unchanged. Refresh generated help fingerprints and matching reference docs. Preserve the original PR ancestry while incorporating main to resolve the generated fingerprint conflict. Co-authored-by: steipete <[email protected]>
|
Addressed the runtime-scope finding in ba10086. Both default help strings, the per-agent override, and the reference docs now say embedded runtime and exclude CLI-backed prompt preparation. Continuation wording now follows the recorded full-bootstrap marker. Runtime behavior, accepted configuration values, and defaults are unchanged. The updated PR body includes fresh inspected before/after UI screenshots, 118 passing focused tests, the real CLI schema comparison (four annotation changes only), verified generated fingerprints, and a clean fresh independent P2 review. Exact-head CI is running. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…w#118755) Co-authored-by: steipete <[email protected]>
Closes #75184
What Problem This Solves
Fixes an issue where users trying to reduce prompt context could mistake
agents.defaults.skipBootstrapfor an injection switch. Generated help omitted its creation-only scope and the supportedcontextInjection: "never"option. The earlier clarification also promised injection control beyond the runtime that implements it.Why This Change Was Made
Clarify creation separately from injection and scope the default and per-agent injection help to the embedded runtime. The reference docs now state the same boundary and describe continuation eligibility as a recorded full-bootstrap turn, rather than any completed assistant response. Ordinary CLI-backed prompt preparation is explicitly outside this setting's scope.
Keep the existing workspace-label grouping and regenerate documentation fingerprints. This changes help metadata and documentation only: configuration shape, accepted values, defaults, persistence, and runtime behavior are unchanged. No migration or operator action is required.
User Impact
The CLI schema and Control UI explain which setting controls workspace-file creation, what the three injection modes mean, and where those modes apply. Skipping injection does not prevent an agent from reading files with tools.
Reported by @camerono; original fix by @steipete.
Work sessions
Evidence
Verified source:
ba10086d2f8256c3f3941de36fe78ddf30c01497, preserving the original PR head and merging pinned main209dc0e6d56e4366673c53ece50f9dbc9b8a8adato resolve the generated fingerprint conflict.Ran the registered
pnpm openclaw config schema --jsoncommand before and after with isolated synthetic state. Main omitted the creation-only description/title and the"never"guidance. The complete schema comparison found exactly four changed annotation leaves (one title and three descriptions), with all validation shapes unchanged. Both commands rebuilt and ran the real CLI.node scripts/run-vitest.mjs src/config/schema.help.quality.test.ts src/config/schema.test.ts src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-injection.test.ts: 118 passed (24 help-quality, 85 schema, 9 embedded-injection cases), no selected skips.pnpm config:docs:genandpnpm config:docs:check: regenerated fingerprints verified. Entry counts remain 2,453 core / 3,740 channel / 4,329 plugin, unchanged from the refreshed base.Fresh independent P2 autoreview: scoped-clean, no actionable findings. Focused formatting and
git diff --checkpassed.Fresh before/after browser scenarios passed against the real Control UI with full source-generated schemas and a deterministic mock Gateway. Exact displayed help and all three choices matched;
true/never/nevervalues, complete form state, dirty state, and autosave state stayed unchanged. No configuration-write requests or browser errors occurred. All 4,529 tracked UI files were byte-identical across the compared checkouts. The attached images are labeled compositions of the unmodified browser-rendered setting rows.Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/35526479236. Required
openclaw/ci-gate, security-sensitive review, and dependency review statuses are also green (publisher run 35527335670). All selected local changed-file checks passed, including production/test typechecks, formatting, lint, dead-export and import-cycle checks, and boundary guards.Compatibility review confirmed: zero new settings, zero accepted-value or default changes, and no persisted-state or migration changes. The exact CLI schema delta is one title and three descriptions only. The fresh ClawSweeper review at
2026-09-20T17:47:53Zconfirms the prior scope finding is resolved and reports no actionable findings.Runtime scope was checked through OpenClaw's actual embedded preparation/compaction and ordinary CLI preparation paths. This PR does not change CLI runtime enforcement or claim to disable external runtimes' own file loading.