Repository navigation
fix(codex): preserve user home default for session catalog - #116131
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 2:43 PM ET / 18:43 UTC. ClawSweeper reviewWhat this changesThe branch removes the Codex plugin manifest’s Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain This PR remains open for manual review rather than receiving a Codex correctness or merge verdict. Current Priority: P2 Review scores
Verification
How this fits togetherThe bundled Codex plugin resolves app-server startup options for two connection owners: ordinary agent harnesses and passive supervision/catalog controls. The chosen home scope determines which Codex store the app-server reads, so it affects whether native catalog and control RPCs see agent-local or user CLI sessions. flowchart LR
A[Plugin manifest config] --> B[Schema default hydration]
B --> C[App-server runtime resolver]
C --> D{Connection owner}
D -->|Agent harness| E[Agent-scoped Codex store]
D -->|Supervision or catalog| F[User-scoped local Codex store]
E --> G[Codex app-server RPC]
F --> G
Decision needed
Why: The repository’s Codex policy forbids a correctness, merge, or proof-sufficiency verdict without personally inspecting Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +59. Total +62 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Restore read-only access to the sibling Codex checkout, then review the exact head’s app-server Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was established in this read-only review. Current source does show the conflicting manifest and supervision defaults, and the PR body supplies redacted runtime evidence, but the required sibling Codex runtime contract could not be inspected. Is this the best way to solve the issue? Unclear. Moving an omission-sensitive default to the connection owner matches the current OpenClaw resolver design, but the exact PR head and Codex app-server contract must be inspected before confirming this is the best safe fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 36b80ada3cea. LabelsLabel 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
HistoryReview history (2 earlier review cycles)
|
5a07abe to
9d8368b
Compare
|
Maintainer landing review and proof at head
|
|
Merged via squash.
|
…116131) * fix-codex-preserve-user-home-session-catalog-default * fix-codex-cover-catalog-reload-proof * fix-codex-harden-catalog-home-proof * fix-codex-enforce-proof-cleanup * test(codex): require proof process shutdown * fix(codex): honor supervised Unix control connections --------- Co-authored-by: IWhatsskill <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
[AI-assisted]
What Problem This Solves
When a Codex app-server block omitted homeScope, schema validation inserted agent before the session catalog saw the configuration. The native Codex catalog therefore opened the agent store instead of the user's intact CLI session store.
Failure mode
The supervision resolver already has connection-aware local fallbacks, but it cannot distinguish omission from an explicitly authored agent value after schema default hydration.
Why This Change Was Made
The manifest no longer assigns a homeScope default. The runtime owner that knows whether the connection is an ordinary harness, local supervision, or websocket supervision now applies the existing safe fallback while explicit settings remain authoritative.
Root Cause
Core plugin validation applies JSON-schema defaults during startup and live reload. The manifest's nested agent default erased authorship information before createCodexSessionCatalogControl called resolveCodexSupervisionAppServerRuntimeOptions.
Runtime ownership
Ordinary harness connections continue to default to agent, local stdio and Unix supervision default to user, websocket supervision defaults to agent, and explicit homeScope values continue to win.
Current source contract
OpenClaw main
36b80ada3ceae2de21b3d8710b883d778e4c4578is the rebased review baseline. Direct caller inspection confirms ordinary conversation, command, binding, and migration paths use the harness resolver, while session-catalog and native control connections use the supervision resolver. Sibling Codex source775fb21d2af9b9936618fe22dd62e6f0cb3ba4a3confirms app-server resolvesCODEX_HOMEas its process-scoped store root andthread/listreads through that configured store.User Impact
The native Codex session catalog can see the user's CLI sessions by default even when other app-server settings are present. Omitted local Unix supervision also reaches its required user scope instead of being rejected after schema hydration. Agent harness isolation, explicit scope choices, and websocket safety remain unchanged.
Evidence
At rebased head
9d8368b8721c65d341be396fbd5b60116f9b1032, four focused suites and 280 tests passed. A new real command-RPC regression also proves omitted Unix supervision reaches its explicit user-scoped connection without being rejected by the ordinary harness resolver. Historical real-Gateway evidence from the original reviewed headb835daee8167186c2036967458614cc47e67db6aremains below.Inspect historical Gateway proof and current-head verification
Provenance
36b80ada3ceae2de21b3d8710b883d778e4c45789d8368b8721c65d341be396fbd5b60116f9b103268c472f379ad2fd97e586254f51088ecbd6ac6d7b835daee8167186c2036967458614cc47e67db6aDirect behavior
Historical Gateway Codex session catalog proof
The disposable credentialed proof script was removed before landing; its already-recorded, redacted production Gateway result is retained below.
Redacted historical Gateway output
{ "exact_head": "b835daee8167186c2036967458614cc47e67db6a", "test_runner": "none", "gateway_registration": "real", "plugin_schema_validation": "real", "config_reload": "accepted", "catalog_rpc": "sessions.catalog.list", "user_sentinel_fingerprint": "bd5a57583b47baa6", "reload_user_sentinel_fingerprint": "e256f067ce6d5669", "agent_sentinel_fingerprint": "086908b88361dfd3", "initial_user_sentinel_visible": true, "initial_agent_sentinel_visible": false, "pre_reload_cached_new_user_sentinel_visible": false, "reloaded_user_sentinel_visible": true, "reloaded_new_user_sentinel_visible": true, "reloaded_agent_sentinel_visible": false, "verdict": "PASS" }Automated verification
Codex catalog and runtime contract
Preserved boundaries
Proof gap
A remote websocket connection and UI presentation were not run. The historical production proof covers local stdio, and the current-head regression crosses the real Unix command-RPC boundary. The credentialed Gateway/provider turn was intentionally not repeated after rebasing because its redacted successful result remains available and the disposable one-off proof script was removed.
Artifacts
36b80ada3ceae2de21b3d8710b883d778e4c4578and sibling Codex775fb21d2af9b9936618fe22dd62e6f0cb3ba4a3.