Repository navigation
Ask before Codex workspace edits and apply permissions to fresh turns - #31299
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. ℹ️ Recent review info
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
9ee99aca-d795-499e-bf62-813f4adc2665
📒 Files selected for processing: 21
src/main/codex/codex-structured-dispatch-boundary.test.tssrc/main/codex/codex-structured-message-options.tssrc/main/codex/codex-structured-session-adapter.test.tssrc/main/codex/codex-structured-turn-permission.tssrc/main/codex/codex-structured-turn-start.tssrc/main/native-chat/agent-session-journal/journal-unsent-send-hold.tssrc/main/native-chat/agent-session-wire/structured-agent-session-child-exit.tssrc/main/native-chat/agent-session-wire/structured-agent-session-codex-input-finalization.spec.tssrc/main/native-chat/agent-session-wire/structured-agent-session-codex-stop-note-end.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-conversation-lifetime.tssrc/main/native-chat/agent-session-wire/structured-agent-session-current-work.tssrc/main/native-chat/agent-session-wire/structured-agent-session-delivery-loop.tssrc/main/native-chat/agent-session-wire/structured-agent-session-event-recovery.tssrc/main/native-chat/agent-session-wire/structured-agent-session-handing-over.tssrc/main/native-chat/agent-session-wire/structured-agent-session-handover.tssrc/main/native-chat/agent-session-wire/structured-agent-session-host-delivery.tssrc/main/native-chat/agent-session-wire/structured-agent-session-host-lifetime.tssrc/main/native-chat/agent-session-wire/structured-agent-session-input-admission.tssrc/main/native-chat/agent-session-wire/structured-agent-session-input-handover.tssrc/main/native-chat/agent-session-wire/structured-agent-session-leftover-settlement.tssrc/main/native-chat/agent-session-wire/structured-agent-session-unfinished-work.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d3be8cc5-95b5-4eaf-a332-2f6d36b969b9
📒 Files selected for processing: 28
src/main/codex/codex-structured-launch-resolution.test.tssrc/main/codex/codex-structured-message-options.tssrc/main/codex/codex-structured-session-adapter.test.tssrc/main/codex/codex-structured-session-adapter.tssrc/main/codex/codex-structured-session-start.tssrc/main/codex/codex-structured-session-state.tssrc/main/codex/codex-structured-thread-open.tssrc/main/native-chat/agent-session-journal/journal-unsent-send-hold.tssrc/main/native-chat/agent-session-wire/structured-agent-session-adapter.tssrc/main/native-chat/agent-session-wire/structured-agent-session-child-exit.tssrc/main/native-chat/agent-session-wire/structured-agent-session-codex-input-finalization.spec.tssrc/main/native-chat/agent-session-wire/structured-agent-session-codex-stop-note-end.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-conversation-lifetime.tssrc/main/native-chat/agent-session-wire/structured-agent-session-event-recovery.tssrc/main/native-chat/agent-session-wire/structured-agent-session-handing-over.tssrc/main/native-chat/agent-session-wire/structured-agent-session-handover.tssrc/main/native-chat/agent-session-wire/structured-agent-session-host-delivery.tssrc/main/native-chat/agent-session-wire/structured-agent-session-host-lifetime.tssrc/main/native-chat/agent-session-wire/structured-agent-session-input-admission.tssrc/main/native-chat/agent-session-wire/structured-agent-session-input-handover.tssrc/main/native-chat/agent-session-wire/structured-agent-session-late-settlement.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-unfinished-work.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
💤 Files with no reviewable changes: 6
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/ja.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Review complete on Codex Ask could edit workspace files without approval, and a retained child could carry an older permission choice into a fresh turn. Ask now supplies the standard on-request/read-only/user policy at final admission. Approve for me preserves the configured sandbox and uses automatic review; Full access keeps its separate policy. Applied-mode descriptions follow successful fresh-turn responses without blocking input on provider readback. One original input owns its finite result through asynchronous preparation, positively unwritten continuation and bounded start retry. Positively unwritten messages keep their original recovery cards across Close, Quit and matching workspace sleep. Uncertain sends are never automatically replayed. Stop keeps the existing “Cancellation requested.” notice. A provider exit before admission gives the original its precise failure without falsely claiming a completed warm turn was still responding. Current main composition Executed validation: 69 literal named files, 1035 unique cases, 1035 passed; zero failed, skipped, filtered, missing or collection errors. 56 snapshots matched, none updated. The 59-case host suite retains the earlier 58 cases and the new exit-status regression; all 4 original performance controls pass. 186 executed source/test/config hashes join to the identical post-hook and committed tree. Initial 1033/1035 and a failed broad fence correction 1031/1035 remain recorded failures. The removed preparatory callback and its five-case regression no longer apply after main's revert. Real-run evidence carries from Targeted QA2513 on Deterministic test evidence, not a real Ask-after-retry pass: Codex “Restart Orca” recovery of a never-sent message waived by Brennan: “Yes can skip it” (2026-10-25). Integrations/fixes since Support is about 1.6 times production because main lacks this PR's late Auto/current-fence/writer conjunction, sent-before-Promise Stop, surviving non-Stop host join, original Close completion and four operation-bound performance controls. No additional coverage-only growth is authorized. Containment disclosures remain: a prior driver started an unauthorized loopback helper and was stopped with it by exact identity. Later driver attempts at VM filesystem escape and wildcard removal were stopped as unusable; interrupted segments supply no blanket pass. Foreground driver wrappers also left owned orphans after connection drops; recorded identities were stopped and the rig detached the wrapper. Subsequent valid drivers and independent native audits supply the credited evidence. Last completed cleanup left zero owned identities/sessions/listeners. Three real config hashes were unchanged; the real .claude.json hash changed with cause unestablished, and its contents were neither read nor restored. QA2513 checked 36 recorded identities with zero survivors, no leased listeners or paused processes, and graceful Browser.close; the ticket was released immediately. All four real config hashes were unchanged during QA2513. Its first Auto fault hit an owned version-check helper, and an actual provider was paused after readiness; the LEAD independently withdrew that false proof. Corrected attempt 2 supplies the real Auto evidence described above; the late Ask conjunction is labelled test evidence. Phone-facing publication is same-host supported-channel evidence, not phone-app QA. Separate observations: Claude duplicate rendering around “Continued outside this chat” reproduced on main and remains on the lane's follow-up list. Cold Codex history reachability was an observed test limit without proof this PR caused it. Additional completed Ask and Claude proof on `99f4bdd9` (carried through main merges)Standard Ask: native edit approval, denied result and allowed result; shell Stop result and allowed result. Claude: preparation-exit followup; Close recovery real reply; personal Stop after 30 seconds without replay. Codex exit-status result on The older 429 shown above the QA2513 messages belongs to a prior attempt. The current warm turn completed, the original was precisely rejected before sending, and the distinct followup completed. For Brennan’s review
Human review: Ask policy, original input ownership, final admission. Carried QA proof by flow (Codex Restart recovery waived, not passed)Previous build, state and upgrade Branch replies and Stop follow-up Historical permission picker (current standard Ask proof above supersedes it) Historical edit decline and acknowledgement (current standard Ask proof above supersedes it) Historical shell refusal and approval (current standard Ask proof above supersedes it) Visible cancellation and child exit Close: exact retained card and explicit recovery Prior-build card upgrade and explicit recovery Codex Restart: unverified candidate, no recovery claim Claude Restart: retained card and explicit recovery Fresh manual Resolve with AI Saved automatic Resolve Claude comparison: preexisting duplicate rendering Codex ordinary Close comparison |

























Codex chat in Ask mode could edit workspace files without approval because Ask used a writable sandbox. A retained child could also carry an older permission choice into a fresh turn. Tracked in STA-11428.
Ask now uses Codex’s standard on-request approval policy with a read-only sandbox and user review. The existing desktop and phone permission picker describes that behavior. Approve for me preserves the configured sandbox and uses automatic review; Full access keeps its separate policy. Work already running keeps its original grant.
The execution host supplies the current approval, reviewer and sandbox policy immediately before each fresh turn, following the common pattern. Permission changes do not normally require replacing a child. Auto preserves the provider's complete acquired policy while untouched, or reads the ordinary legacy configuration when it can be resolved exactly. Safe reacquisition remains available when the provider must compile the policy. Dispatch checks child identity and ownership again after preparation. Applied descriptions come from successful per-turn responses and do not gate input on descriptive readback.
Intended difference: preserve configured Auto writable roots, network access and temporary-directory exclusions instead of constructing a default writable policy. Native Windows may compile a different sandbox according to its available backend and managed requirements. Old paired servers keep their existing execution behavior until their host is updated; this adds no public protocol or minimum version. Terminal launch alignment is tracked in #30449.
Temporary difference, tracked in STA-11442: a retained busy child that cannot report or resolve the exact Auto sandbox keeps its running grant until safe reacquisition, matching the existing acquisition-bound transition. No guessed access or hidden writable probe is used. The provider selects the Windows backend using runtime availability and managed constraints absent from configuration query responses.
One original input retains its finite result through positively unwritten continuation and bounded start retry. Close, Quit and matching workspace sleep preserve the exact unsent recovery card, text, choices and order. Stop keeps “Cancellation requested.” and existing session-ending behavior. An uncertain send is never automatically replayed. A pre-send provider exit settles the original without a second false response-in-progress notice.
Current main composition
7497ddc3adopts main's #33823 revert of #30914 while preserving current applied settings, goal Stop, retry and terminal-writer exclusion. Its test inventory is 69 literal named files/1035 unique cases, all passed, zero skipped, filtered or missing; 56 snapshots matched without updates. 186 executed source/test/config hashes match the committed tree after the scoped merge hook. The 59-case host suite includes the exit-status causal regression and all 4 original performance controls remain. The current complete gross change against main351705 is 1839 production/2892 support, within authorized 1950/3077. Test support is about 1.6 times production because main lacks this PR's late Auto/current-fence/writer conjunction, sent-before-Promise Stop, surviving non-Stop host join, original Close completion and four performance controls.Prior real-run evidence carries for previous-build state through graceful upgrade, two real replies per agent, Stop/child termination, Close and prior-card explicit recovery, Claude Restart, and manual/saved automatic Resolve preserving unrelated work. Targeted
99f4bdd9evidence confirms standard Codex Ask with actual edit Deny/Allow, shell Stop/Allow and real effects/replies; Claude pre-send preparation exit with finite original rejection and distinct followup; Claude Close with one exact explicit recovery and real reply; and active Claude personal followup cancelled by Stop without replay. Shell refusal uses the provider's offered Stop, separately from edit Deny. Published phone-facing channel proof is not a phone-app run.Codex “Restart Orca” recovery of a never-sent message waived by Brennan: “Yes can skip it” (2026-10-25).
Continued independent review agrees with this composition. Exact-head full CI is green, including actual compiler execution, five test shards, Windows packaging, mobile, persistence, cross-version and three WSL checks (run).
Targeted QA2513 on
7497ddc3passed the precise Codex pre-send exit-status row: the original was rejected as unwritten in about 1.1 seconds, added no false response-in-progress status and had zero provider user entries/replay; a distinct followup returned a real reply. Corrected Auto attempt 2 positively continued the same original through an actual first replacement death while Starting, bounded retry and one real reply at fence 16. It completed under on-request/workspace-write/auto_review. Native journal, rollout and channel evidence prove the reply; no final Auto-reply screenshot was captured.Deterministic test evidence, not a real Ask-after-retry pass:
structured-agent-session-codex-input-finalization.spec.ts, case “ends previously positive continuation at actual starting-exit”, exercises the late Ask choice and asserts on-request/read-only. The picker is disabled during Starting, matching main; the disabled control was not clicked successfully. The lane accepted the real Auto continuation/failed-start/retry/same-original reply on7497ddc3, real standard Ask denial/allow/replies on99f4bdd9, and this executed scheduler-interleaving test as split evidence. This is an evidence disposition, not another waiver or a product change. Attempt 1's false fault/retry claim remains withdrawn and is never counted.Screenshots below show standard Ask's native approval on
99f4bdd9and the precise exit-status/distinct-followup result on7497ddc3. The older 429 above the QA2513 messages belongs to an earlier attempt. The single review status comment contains the full flow gallery, carried QA heads and containment/config-hash disclosures.