Repository navigation
docs: clarify Code Mode runtime surfaces - #83435
HemantSudarshan wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. PR rating What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. Label changes:
Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8961eae3f022. |
|
@clawsweeper re-review CI is now complete on PR head
Relevant CI jobs include |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper PR egg 🥚 Incubating: this PR egg is tucked into the review nest. Hatch commandComment Hatchability rules:
What is this egg doing here?
|
|
Thanks. The useful Codex/OpenClaw code-mode distinction is now covered on |
Fixes #83390.
Summary
docs/reference/code-mode.mdthat separates Codex Code Mode from OpenClaw code mode by owner, default state, model input shape, sandbox/lifecycle, and OpenClaw tool path.docs/plugins/codex-harness.md, including the fail-closed nuance for narrow Codex native tool allowlists.scripts/format-docs.mjsso the required docs formatting check can run on Windows without exceeding command-line limits, and reports formatter spawn failures cleanly.Problem summary
Both Codex and OpenClaw expose features called "code mode", but they are different mechanisms. The current docs only distinguished them in prose, so bug reports and evaluations could confuse Codex app-server Code Mode with OpenClaw's opt-in QuickJS-WASI tool-surface adapter.
Root cause
docs/reference/code-mode.mdlacked a mechanism table for the two surfaces, anddocs/plugins/codex-harness.mddescribed Codex native code mode without linking back to the OpenClaw code-mode reference. While validating the docs fix locally on Windows,scripts/format-docs.mjsalso passed the full docs file list tooxfmtin one process, which can exceed the Windows argument limit beforepnpm check:docsreaches the Markdown checks.Architectural reasoning
This does not change runtime behavior. The docs align to the existing source contracts:
tools.codeMode.enabled, usesquickjs-wasi, and exposesexecwithcodeplus optionallanguage.Testing performed
pnpm install --frozen-lockfilepnpm docs:listDOCS_I18N_GLOSSARY_BASE=upstream/main pnpm check:docsnode scripts/format-docs.mjs --checkpnpm lint:docsnode --check scripts/format-docs.mjspnpm check:changedgit diff --checkDOCS_I18N_GLOSSARY_BASE=upstream/mainwas used locally because this fork'sorigin/mainremote-tracking ref is stale relative to the upstream base; CI should resolve against the upstream PR base normally.pnpm test:changedwas attempted, but the changed-test resolver did not finish within the local timeout and was stopped. No runtime source or Vitest-covered behavior changes are included; the relevant proof for this patch is the docs gate plus changed-surface checks above.Risk analysis
Risk is low. The docs change is clarifying existing contracts. The formatter change is limited to chunking
oxfmtinvocations and improving error output, with the full docs formatting check passing after the change. There are no changes to gateway/session flows, concurrency, cleanup logic, public API behavior, model routing, or plugin runtime behavior.Backward compatibility
No user-facing behavior or API contract changes. Existing docs URLs and root-relative links are preserved.
Real behavior proof
Behavior addressed: Developers can now tell Codex Code Mode and OpenClaw code mode apart by mechanism, input shape, sandbox/lifecycle owner, and OpenClaw tool path.
Real environment tested: Windows checkout on Node
v22.16.0with pnpm11.1.0, branchHemant/docs-code-mode-disambiguation.Exact steps or command run after this patch:
DOCS_I18N_GLOSSARY_BASE=upstream/main pnpm check:docs.Evidence after fix: The docs gate reported clean formatting,
markdownlint0 errors over 630 files, MDX check passed over 646 files, and link audit reportedchecked_internal_links=4390withbroken_links=0.Observed result after fix: The updated docs pass the relevant docs validation, and the formatter no longer crashes on Windows from the full docs file list.
What was not tested: Full runtime/Vitest suite, because this patch changes docs and docs-format tooling only.