Repository navigation
fix(codex): keep ordinary chats out of personal history - #149355
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
bc5b692 to
0b4ce35
Compare
|
Codex review: blocked before merge. Reviewed September 15, 2026, 9:54 PM ET / September 16, 2026, 01:54 UTC (Revision 4). ClawSweeper reviewWhat this changesKeeps ordinary Codex-backed chats in per-agent storage and connects detected-Codex setup to existing OpenAI sign-in, credential reuse, and saved-login retry flows. Merge readiness⛔ Blocked before merge - 4 items remain The fix remains necessary, and the earlier sign-in finding is addressed. No new blocking code defect was found; the remaining judgment is whether the documented authentication transition has sufficient upgrade coverage. Priority: P2 Review scores
Verification
How this fits togetherThe Codex plugin translates OpenClaw conversations into native Codex sessions. Its home and credential selection determines where conversation history lives and which account authenticates requests. flowchart TD
A[OpenClaw conversation] --> B[Home selection]
B -->|Default| C[Per-agent Codex home]
B -->|Explicit sharing| D[Personal Codex home]
E[Model Setup] --> F[OpenAI sign-in or saved credential]
F --> C
C --> G[Native Codex session]
D --> G
Decision needed
Why: The follow-up gives a substantive proportional-proof explanation, but the transition can interrupt existing authentication and no authenticated upgrade was exercised. Before merge
Agent review detailsSecurityNone. PR surfaceSource +41, Tests +412, Docs +11. Total +464 across 17 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain per-agent isolation and guided Model Setup recovery, with explicit owner acceptance of the authentication transition and its bounded upgrade coverage. Do we have a high-confidence way to reproduce the issue? Yes, from source: main's deferred-auth local-stdio path selects the personal home despite the canonical agent-home default. The connection regression covers that trigger; this read-only review did not execute it. Is this the best way to solve the issue? Yes. Reusing the canonical home selector and existing sign-in/activation owners avoids competing credential logic; acceptance of the upgrade coverage remains a separate landing judgment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd3c71e4b092. 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 (3 earlier review cycles)
|
|
Setup recovery rendering proof (1280×900, light theme): the actual Control UI receives mocked Gateway responses for the formerly credential-free detected-Codex failure and the repaired guided sign-in. The code and URL are inert fixtures, not a live OpenAI login. Both browser scenarios pass; backend activation tests separately exercise saved OAuth credentials and promotion. Before: verification fails without an OpenClaw credential. After: detected Codex uses the existing guided OpenAI sign-in controls before verification. |
|
@clawsweeper re-review Addressed the setup P1 in Activation tests: 42 passed; plugin configuration: 63 passed; targeted continuity/native-ownership cases: 15 passed. Build, core/core-test typechecks, corrected-file lint, and remaining boundary/auth guards passed. The oversized activation fixture was extracted without dropping cases or adding suppressions. The PR body is current and links inspected before/after screenshots, verified in the GitHub comment. They render the actual Control UI with mocked Gateway replies, not a live OAuth account. The requested isolation policy is retained; no personal history is moved or deleted. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The native-worker CI failure is fixed in On the compatibility-proof request: no provider-auth protocol, storage-format migration, or retention implementation was added. The repair selects the existing agent-home bridge and existing OpenAI sign-in/activation owners. The activation/retry/cancellation, continuity, and native worker/store tests are the proportional evidence for this bounded default-selection repair. A real provider-account/OAuth upgrade exercise was not run and is not represented as completed; that confidence limitation remains documented. No personal credentials were borrowed for testing, and no personal history was moved or deleted. |
|
The latest CI failure is in the shared PR-wrapper fixture, not the Codex delta. I reproduced the nine exit-1/expected-73 failures on the exact tested merge Existing repairs #149561, #149562, and #149563 already cover this dependency, so I am not adding a competing wrapper patch here. A diagnostic one-call variant passes all 12 alias cases, including the three trust-refusal cases, without changing guards or assertions. #149561 and #149562 are alternatives: their diffs remove opposite initialization calls; combining both removals would leave no initialization. The adopted main revision must retain exactly one setup call before the recorder. I will consume the verified upstream repair, rerun the affected checks, and then continue this PR through exact-head CI and native landing. |
Use the canonical agent-home default for runtime, model discovery, and setup. Native login requires explicit user-home sharing; OpenClaw profiles and native supervision keep their existing ownership. Co-authored-by: fuller-stack-dev <[email protected]>
OpenClaw-Publication: f69d37ae-c63a-4e9a-8953-6ed4d021c08f Co-authored-by: fuller-stack-dev <[email protected]>
Co-authored-by: fuller-stack-dev <[email protected]>
Use the existing OpenAI sign-in owner before verifying detected Codex, preserve saved credential retries, and cover activation, cancellation, and explicit native sharing. Co-authored-by: fuller-stack-dev <[email protected]>
Keep native login/logout coverage for explicit user scope and prove omitted or agent-scoped homes remain isolated through the real auth-refresh worker. Co-authored-by: fuller-stack-dev <[email protected]>
17941e0 to
0b4bd0d
Compare
|
Merged via squash.
|
) * fix(codex): keep ordinary chats out of personal history Use the canonical agent-home default for runtime, model discovery, and setup. Native login requires explicit user-home sharing; OpenClaw profiles and native supervision keep their existing ownership. Co-authored-by: fuller-stack-dev <[email protected]> * fix(codex): keep ordinary chats out of personal history OpenClaw-Publication: f69d37ae-c63a-4e9a-8953-6ed4d021c08f Co-authored-by: fuller-stack-dev <[email protected]> * test(codex): check catalog identity on the native scope Co-authored-by: fuller-stack-dev <[email protected]> * fix(codex): finish isolated setup sign-in Use the existing OpenAI sign-in owner before verifying detected Codex, preserve saved credential retries, and cover activation, cancellation, and explicit native sharing. Co-authored-by: fuller-stack-dev <[email protected]> * test(codex): require explicit native home in worker fixtures Keep native login/logout coverage for explicit user scope and prove omitted or agent-scoped homes remain isolated through the real auth-refresh worker. Co-authored-by: fuller-stack-dev <[email protected]> --------- Co-authored-by: fuller-stack-dev <[email protected]>


What Problem This Solves
Fixes an issue where ordinary OpenClaw chats and background work appeared in personal Codex Desktop/CLI history when an existing native login silently selected the user home. It also completes detected-Codex setup for users who need an OpenClaw sign-in after isolating that home.
Why This Change Was Made
Runtime preparation, native-login discovery, model discovery, and setup now honor the existing agent-home default. Detected Codex reuses eligible OpenClaw credentials or invokes the existing OpenAI sign-in owner before verification. Saved credentials retain the selected runtime settings for retry, and cancellation cannot promote the route. No new credential import or refresh owner is introduced.
User Impact
Ordinary sessions stay isolated and durable, regardless of an existing native Codex login. Explicit
appServer.homeScope: "user", native-session adoption, and supervision remain supported. No personal history is moved or deleted.Users who relied on automatic native-login borrowing can select detected Codex in Model Setup to sign in, or use
openclaw models auth login --provider openai. Existing explicit user-home settings remain unchanged; remove that setting to isolate ordinary sessions. A failed verification retains the saved sign-in for retry without another login.Evidence
Original isolation regression reproduced: the deferred-auth/local-stdio path selected the user home instead of the agent home. The repaired connection test also checks the actual startup
CODEX_HOME.The setup P1 was reproduced at activation: guided sign-in was never called. The repaired activation suite passes 42 tests, including fresh/existing installations, saved credential reuse, cancellation, retry, and explicit native sharing. Plugin configuration tests: 63 passed.
Targeted fresh-thread continuity, canonical SQLite replay, stale-binding continuity, and supervised native ownership checks: 15 passed. Native auth, connection, catalog, and binding siblings also passed during the isolation repair.
Local build, core/core-test typechecks, formatting, targeted lint, and boundary/storage/auth guards passed. Final lint cleanup extracted the unchanged shared activation fixture and preserved the JSON persistence assertion rather than suppressing rules. The build passed before that mechanical cleanup; exact-head hosted CI is now green (run 35045457812).
Fresh independent autoreview of the substantive setup repair was scoped-clean through P2. Independent parent review also corrected the native catalog cache-isolation assertions.
Before/after setup screenshots are embedded in the linked comment and verified to render. Both real Control UI rendering scenarios pass with mocked Gateway replies and inert sign-in fixtures; this is not authenticated Desktop/OAuth proof. Screenshots were also delivered to the originating conversation.
CI follow-up: the real native-login auth-refresh worker fixture now opts into user-home sharing explicitly. The expanded suite passes 30 tests, including omitted/agent-scope isolation and user-scope login/logout. It uses the actual Codex CLI and isolated credential files with a synthetic API key, not a live provider account. Production code is unchanged by this follow-up.
Published head:
0b4bd0d95d6432b0ee576a8357bb1683d5c66e71; tree:8cfd07c3d6be7ff19ae77b4982319afd97ec4ea6; adopted main base:174bbf31b588d3483d6773ce420afcf13e9e8936. The five Codex commits are patch-identical to the previous public head (17941e0020a557d22a4d75dec103e96cb4641c22): the same 17-file delta, 842 additions and 378 deletions. Every task commit preserves the contributor co-author trailer.The former exact-head CI failure (run 35039988603, job 104623127671) was reproduced on its exact tested merge and traced to the unrelated shared PR-wrapper fixture. The refresh adopts #149477, landed at
476fa7a270e4aeef5d485efaa7b92ae62341cd3c, from protected main rather than adding a competing patch. The actual main fixture retains exactly one dependency setup before the Node recorder, with the helper, guards, and assertions unchanged. The full wrapper suite passes 92 tests on adopted main and again on this candidate; the native-worker integration suite passes 30 tests on this candidate. No wrapper source or fixture change is part of the Codex delta.Exact-head CI run 35045457812 completed successfully, including the required
openclaw/ci-gate. Native preparation and merge completed; merged as45bacfa7232f37b06dff315c2284bcbea82e5f69on September 16, 2026 at 02:27 UTC. The latest completed ClawSweeper review examined exact head0b4bd0d95d6432b0ee576a8357bb1683d5c66e71at 2026-09-16 01:54:11 UTC and found no actionable code/security findings; it recommends accepting the bounded coverage. The existing owner acceptance of the documented sign-in transition and coverage remains in force. The authenticated-upgrade evidence assessment is recorded in the owner response: the existing home/auth owners and isolated source, activation, continuity, and real native CLI/store proof are reused; no real provider-account/OAuth upgrade was run.Worked on by: @fuller-stack-dev
Team session: https://team.openclaw.ai/chat/roboclaw/dashboard/a87929a9-447d-48d1-9629-7f7bddcce417
View the OpenClaw implementation session