Repository navigation
refactor: remove retired Codex CLI parser - #116017
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 1:48 PM ET / 17:48 UTC. ClawSweeper reviewWhat this changesThe branch removes retired Codex exec JSONL parsing from the generic CLI runner, deletes its dedicated fixtures, and retains terminal tool-summary checks through the supported Claude stream-json lifecycle. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for human review. The supplied context supports the intended owner-boundary cleanup, but the required current-main and sibling Priority: P3 Review scores
Verification
How this fits togetherThe generic CLI runner converts registered command-line backend output into agent terminal results, including a compact tool summary. Codex execution is intended to arrive through its plugin-owned app-server runtime rather than through the generic CLI JSONL parser, while Claude and Gemini remain registered CLI dialects. flowchart LR
A[Agent run request] --> B[CLI backend selection]
B --> C[Registered Claude or Gemini dialect]
C --> D[Generic CLI output parser]
D --> E[Terminal tool summary]
A --> F[Codex plugin app-server runtime]
F --> G[Codex runtime result]
E --> H[Agent result]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource -134, Tests -138. Total -272 across 12 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Verify on current Do we have a high-confidence way to reproduce the issue? Not applicable as a conventional bug reproduction: the key question is whether a supported current-main CLI path can still reach the deleted parser, which could not be checked because the read-only inspection environment failed before commands ran. Is this the best way to solve the issue? Unclear. Removing retired provider-specific policy from core is the likely best design, but that conclusion requires direct verification of current backend registration, call sites, and the plugin-owned Codex runtime contract. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against e80fe942c8da. 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
|
|
@clawsweeper re-review Both rank-up moves are now addressed in the PR body: direct current-main and sibling Codex source inspection, plus a redacted live Claude CLI terminal result with one successful Read call and failures: 0. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* origin/main: refactor(agents): remove retired Codex CLI parser (openclaw#116017) feat(mac): hand off gateway-owned settings panes to the dashboard (openclaw#115999) fix(gateway): declare viewer presence explicitly instead of deriving it from subscriptions (openclaw#116001) test(plugins): include dreaming sidecar in startup expectation (openclaw#116018) fix(openai): prevent GPT-Live errors from stalling (openclaw#115582) fix(gateway): stop start-time repair from retargeting managed services (openclaw#115935) fix(plugins): scope Codex relay with tool matchers (openclaw#109603)
* origin/main: (823 commits) fix(memory): return early for blank searches (openclaw#116034) fix(tool-search): long-lived gateways leak heap from finished embedded runs (openclaw#114767) feat(harness): report copilot code-mode engagement on the attempt result (openclaw#115913) fix(ui): compact the macOS gateway picker menu (openclaw#115977) perf(codex): stream large CLI session JSONL scans (openclaw#115997) cron: reject webhook URLs with embedded credentials (openclaw#51822) refactor(agents): remove retired Codex CLI parser (openclaw#116017) feat(mac): hand off gateway-owned settings panes to the dashboard (openclaw#115999) fix(gateway): declare viewer presence explicitly instead of deriving it from subscriptions (openclaw#116001) test(plugins): include dreaming sidecar in startup expectation (openclaw#116018) fix(openai): prevent GPT-Live errors from stalling (openclaw#115582) fix(gateway): stop start-time repair from retargeting managed services (openclaw#115935) fix(plugins): scope Codex relay with tool matchers (openclaw#109603) fix(discord): bound webhook send body reads (openclaw#109076) fix(ui): preserve initials for missing user avatars (openclaw#115976) feat(ui): add provider icons to coding catalogs (openclaw#115956) fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285) fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927) fix(test): isolate plugin install fixtures (openclaw#116008) fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729) ...
Related: #115497
What Problem This Solves
Removes a dead compatibility path that taught the generic CLI runner to parse Codex exec JSONL even though OpenClaw retired the bundled
codex-clibackend and migrated Codex execution to the plugin-owned app-server runtime.Why This Change Was Made
The generic CLI runner now stays limited to its registered Anthropic and Google backend dialects. The useful terminal tool-summary behavior remains generic, with its zero-tool, success, failure, and repeated-name coverage moved onto the supported Claude stream-json lifecycle instead of synthetic Codex fixtures.
This replaces the additive shape from #115797 with the correct owner boundary: no Codex protocol policy in core and no test-only compatibility route for a retired backend.
User Impact
No supported user workflow changes. Core loses 134 lines of unreachable provider-specific production code, and the complete change is +25/-297 lines.
Evidence
a0f35574d04removed the bundledcodex-clibackend and migrated legacy refs to the Codex runtime; current manifests register onlyclaude-cliandgoogle-gemini-cli.openai/codexatd06c7ac055920c7cb140c25ebda3f3db20197b45, includingcodex-rs/exec/src/exec_events.rs,codex-rs/exec/src/event_processor_with_jsonl_output.rs,sdk/typescript/src/items.ts, andsdk/typescript/src/events.ts.node scripts/run-vitest.mjs src/agents/cli-output.test.ts src/agents/cli-runner/execute.supervisor-capture.test.ts src/agents/cli-runner.before-agent-reply-cron.test.ts— 153 passed.tbx_01kyqdvp0hx7hv80zwf46xceg3, Actions run https://github.com/openclaw/openclaw/actions/runs/30474341892 — exit 0.b04f1e5995a: clean, no accepted/actionable findings; confidence 0.98.ClawSweeper rank-up moves are addressed directly:
extensions/anthropic/openclaw.plugin.jsonregistersclaude-cli;extensions/google/openclaw.plugin.jsonregistersgoogle-gemini-cli;extensions/codex/openclaw.plugin.jsonregisters no CLI backend. Core backend resolution requires a runtime/setup registration, so the removed provider-id branch had no supported caller.openai/codexSHA and remain owned by Codex; OpenClaw's supported Codex route is the plugin app-server harness.claude-cli/claude-sonnet-4-6, pointed the temporary agent workspace at this checkout, and required one realReadcall. Only the sanitized terminal projection is shown:{ "proof": "supported-cli-terminal-summary", "provider": "claude-cli", "model": "claude-sonnet-4-6", "toolSummary": { "calls": 1, "tools": ["Read"], "failures": 0 }, "payloadCount": 1 }AI-assisted: implemented and reviewed with Codex.