feat(agents): allow spawn fast mode overrides#82148
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 8:52 PM ET / July 1, 2026, 00:52 UTC. Summary PR surface: Source +51, Tests +73, Docs +11. Total +135 across 21 files. Reproducibility: not applicable. This PR adds a new model-facing spawn capability rather than fixing a reproduced current-main bug. The blockers are source-review findings against the PR diff and current-main contracts. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Rebase onto current main, implement the spawn override on the shared FastMode contract through native and ACP paths, remove release-owned changelog edits, and attach redacted real child-spawn proof before merge. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR adds a new model-facing spawn capability rather than fixing a reproduced current-main bug. The blockers are source-review findings against the PR diff and current-main contracts. Is this the best way to solve the issue? No, not yet. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 44b4a0ac0598. Label changesLabel justifications:
Evidence reviewedPR surface: Source +51, Tests +73, Docs +11. Total +135 across 21 files. View PR surface stats
What I checked:
Likely related people:
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. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8dd11be0c9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
8dd11be to
32124e8
Compare
|
Closing during work-mgmt triage. Will reopen if pursuing upstream contribution. |
32124e8 to
59aac23
Compare
|
@jai thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
Summary
fastModeoverride support tosessions_spawnReal behavior proof
sessions_spawnnow accepts an explicitfastModeoverride so native subagent and ACP child launches can opt out of inherited fast-mode defaults before the first child turn.jaig-codex/fastmode-sessions-spawn, commit32124e878a, with the live Codex CLI/OpenClaw agent environment used for FINN PR maintenance smoke runs.fastMode: falseonto the child session before native subagent and ACP child turns start; the focused tests cover the tool payload path, native subagent spawn path, and ACP spawn path.Validation
pnpm test src/agents/tools/sessions-spawn-tool.test.ts src/agents/subagent-spawn.test.ts src/agents/acp-spawn.test.tspnpm tsgo:corepnpm tsgo:core:testDOCS_I18N_GLOSSARY_BASE=upstream/main pnpm check:docspnpm exec oxfmt --check CHANGELOG.md docs/tools/acp-agents.md docs/tools/subagents.md docs/tools/thinking.md src/agents/acp-spawn.ts src/agents/acp-spawn.test.ts src/agents/subagent-spawn.ts src/agents/subagent-spawn.test.ts src/agents/tools/sessions-spawn-tool.ts src/agents/tools/sessions-spawn-tool.test.tsOPENCLAW_ADDITIONAL_BOUNDARY_SHARD=1/4 OPENCLAW_ADDITIONAL_BOUNDARY_CONCURRENCY=4 node scripts/run-additional-boundary-checks.mjsgit diff --check upstream/main...HEAD