Repository navigation
fix(agent-status): stop an auto-reviewed Codex approval reading as "Needs You" - #21389
Conversation
…eeds You" Codex runs its PermissionRequest hook as decider #1, ahead of both its own review agent and the user, so the event means "a decision is being made", not "a human is blocked". Under the "Approve for me" posture the review agent resolves it seconds later, so every gated tool call drove the pane from Working to Needs You and back, plus a desktop notification each time. The execution host now reads the turn's approvals_reviewer off the rollout it already tails for subagent reconciliation, and keeps a reviewer-owned approval as working. Positive evidence only: an absent field, an older rollout, or an unreadable file all still raise the wait, so this can never hide a real prompt. Splits the incremental rollout JSONL cursor out of the subagent transcript module, which the new reader pushed over the file-length cap.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe change adds incremental Codex rollout JSONL readers and tracks reviewer ownership by transcript path. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to After a transient rollout-file read failure, restored auto-reviewed approvals can incorrectly show “Needs You” until the transcript changes. This is a bounded UI regression; merge is acceptable with owner awareness. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Reconcile child transcripts before resolving approval ownership. · codex-events.ts:160-175
src/shared/agent-hook-listener/providers/codex-events.ts:160-175
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winReconcile child transcripts before resolving approval ownership. Codex permits
PermissionRequesthooks in thread-spawned subagents and suppliesagent_idandtranscript_path. If a child request arrives before the lead event reconciles the current rollout, this branch resolves ownership from stale cached reviewer state and can classify anauto_reviewapproval aswaiting. Reconcile the event transcript before resolvingchildState.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 6a557819-0897-4fd3-b78c-7051edf504ab
📒 Files selected for processing (5)
src/shared/agent-hook-listener-codex-approval-ownership.test.tssrc/shared/agent-hook-listener/providers/codex-events.tssrc/shared/agent-hook-listener/providers/codex-state.tssrc/shared/codex-rollout-jsonl-cursor.tssrc/shared/codex-subagent-transcript.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| } | ||
| } else { | ||
| const leadState = codexLeadStateForHookEvent(eventName) | ||
| const leadState = codexLeadStateForHookEvent(eventName, payload.state) |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
sed -n '140,225p' src/shared/agent-hook-listener/providers/codex-events.ts
sed -n '60,145p' src/shared/agent-hook-listener/providers/codex-state.ts
sed -n '1,130p' src/shared/codex-subagent-roster.ts
rg -n 'reconcileRemoteCodexState|codexRosterEffectiveState|leadState' src/shared --glob '*.ts'Repository: stablyai/orca
Length of output: 11990
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- codex-subagent-roster.ts ---'
sed -n '118,150p' src/shared/codex-subagent-roster.ts
printf '%s\n' '--- codex-events.ts ---'
sed -n '1,90p' src/shared/agent-hook-listener/providers/codex-events.ts
sed -n '188,220p' src/shared/agent-hook-listener/providers/codex-events.ts
printf '%s\n' '--- codex-state.ts ---'
sed -n '1,180p' src/shared/agent-hook-listener/providers/codex-state.ts
printf '%s\n' '--- direct bindings and payload definitions ---'
rg -n -C 3 'reconcileRemoteCodexState|buildCodexStatusPayload|buildCodexChildDrivenStatusPayload|ParsedAgentStatusPayload|codexLeadStateByPaneKey' src/shared --glob '*.ts'Repository: stablyai/orca
Length of output: 50369
Keep the normalized lead state separate from the aggregate payload state.
When the lead is working and a child is waiting, codexRosterEffectiveState makes the transmitted payload.state waiting. reconcileRemoteCodexState then passes that aggregate value to codexLeadStateForHookEvent, which stores waiting as the lead state. A later SubagentStop only removes the child and recomputes the aggregate, so the lead remains waiting.
Carry the normalized lead state as separate transport metadata and use it for lead reconciliation.
There was a problem hiding this comment.
ℹ️ No critical issues — the mechanism is sound and I verified the upstream Codex contract it depends on. One remote-path coverage gap is worth closing before merge.
Reviewed changes
- Host-side approval ownership —
resolveCodexApprovalOwnedStateincodex-events.tsdowngrades aPermissionRequestwait toworkingwhen the turn's reviewer isauto_review, for both lead andagent_idevents. - Reviewer retention —
CodexSubagentTranscriptState.approvalsRevieweris read from the parent rollout'sturn_contextand retained across incremental reads, reset only when the rollout path changes;codexTurnApprovalsAreAutoReviewedexposes it. - Relay pass-through —
codexLeadStateForHookEventnow accepts the normalized payload state so a relayed reviewer-owned approval staysworkinginstead of being re-derived aswaiting. - Cursor extraction — JSONL cursor/record/directory helpers moved into
src/shared/codex-rollout-jsonl-cursor.ts. - Tests — new 8-case suite covering auto/user/absent/unreadable/no-path/
request_user_input/cross-rollout/no-flap.
I confirmed against upstream openai/codex that turn_context.payload.approvals_reviewer is real, serializes as exactly "user" / "auto_review", is written unconditionally when a turn_context record is emitted, and that a reviewer switch forces a fresh turn_context — so the ?? state.approvalsReviewer retention cannot leave a stale auto_review after a switch back to manual.
ℹ️ The relay path's new pass-through is untested
The codexLeadStateForHookEvent(eventName, payload.state) change is the only thing that keeps a reviewer-owned approval working on a remote/SSH pane, and no test drives it. The PR body's claim that "the SSH path is covered by the relay suite rather than a live run" is not currently true — the relay suites are Claude-only and the codex ingestRemote cases cover working/done/child identity, never a lead PermissionRequest.
Technical details
# relay-path-pass-through
## Affected sites
- `src/shared/agent-hook-listener/providers/codex-state.ts:127` — `codexLeadStateForHookEvent(eventName, payload.state)` decides `working` vs `waiting` for relayed codex approvals; no test reaches it with `eventName === 'PermissionRequest'`.
- `src/main/agent-hooks/server-ingest-remote.test.ts` / `src/main/agent-hooks/server-relay-listener-replay.test.ts` — codex cases exist but none ingest a codex lead `PermissionRequest`.
## Required outcome
- A `connectionId`-stamped codex lead `PermissionRequest` with `payload.state: 'working'` stays `working` through `reconcileRemoteCodexState`.
- The same event with `payload.state: 'waiting'` stays `waiting` (older-host / genuine-prompt case).
## Suggested approach
- Add an `ingestRemote` case asserting the snapshot state for both payload states, mirroring the existing remote codex cases.ℹ️ Nitpicks
readApprovalsReviewer's doc (src/shared/codex-subagent-transcript.ts:149) says the field is absent "whenever Codex resolves the field to nothing". Upstream buildsturn_contextwithapprovals_reviewer: Some(...)unconditionally, so a written record always carries"user"or"auto_review"; only genuinely older rollouts omit it. Worth tightening so the comment doesn't imply a case that can't occur.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 7d21e4a2-3aea-4ead-a908-49be09c7f41d
📒 Files selected for processing (2)
src/shared/agent-hook-listener-codex-approval-ownership.test.tssrc/shared/codex-subagent-transcript.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.
| parentRecords === undefined | ||
| ? undefined | ||
| : (readApprovalsReviewer(parentRecords) ?? state.approvalsReviewer) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reset the parent cursor after an unreadable read.
If a read fails after the cursor reaches EOF, this branch clears approvalsReviewer but retains state.parent.offset. If the file becomes readable again without a size change, readJsonlCursor returns no records. The reviewer is not restored, so later auto-reviewed PermissionRequest events remain waiting for the rollout.
Reset offset and carry when the read is unreadable. Add a regression test that removes and restores the same rollout file.
Proposed fix
- state.approvalsReviewer =
- parentRecords === undefined
- ? undefined
- : (readApprovalsReviewer(parentRecords) ?? state.approvalsReviewer)
+ if (parentRecords === undefined) {
+ state.approvalsReviewer = undefined
+ state.parent.offset = 0
+ state.parent.carry = ''
+ } else {
+ state.approvalsReviewer = readApprovalsReviewer(parentRecords) ?? state.approvalsReviewer
+ }There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the delta since the prior pullfrog review (bd37f0f → d694b08), which hardens the reviewer read and closes the prior inline coverage gap.
- Thread-settings reviewer switch —
readApprovalsReviewernow also readsevent_msg/thread_settings_applied.thread_settings.approvals_reviewer, so switching "Approve for me" back to manual mid-session re-raises the wait instead of retainingauto_review. - Unreadable rollout clears the retained reviewer — when
readJsonlCursorcannot read the parent rollout,approvalsRevieweris reset rather than carried, so a staleauto_reviewcannot hide a genuine prompt. - Legacy alias —
guardian_subagentmaps toauto_review, matching Codex's deserialize alias. - Tests — three new cases pin the reviewer switch, the legacy alias, and the unreadable-rollout reset.
I verified the new record shape against upstream openai/codex main: ThreadSettingsApplied(ThreadSettingsAppliedEvent) carries thread_settings: ThreadSettingsSnapshot with a required approvals_reviewer, and ApprovalsReviewer serializes auto_review while accepting guardian_subagent only as a deserialize alias. The suite (11 tests) passes, as do the 106 agent-hooks/agent-hook-listener files; check:code-quality:changed reports 0 new findings.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: a39edf62-70a1-4a89-9e3a-01356da03a50
📒 Files selected for processing (3)
src/shared/agent-hook-listener-codex-approval-ownership.test.tssrc/shared/agent-hook-listener/providers/codex-events.tssrc/shared/codex-subagent-transcript.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.
| state.approvalsReviewer = undefined | ||
| return | ||
| } | ||
| state.approvalsReviewer = readApprovalsReviewer(records) ?? state.approvalsReviewer |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
🔎 Supported by static analysis
🏁 Script executed:
sed -n '140,215p' src/shared/agent-hook-listener/providers/codex-events.ts
sed -n '220,345p' src/shared/codex-subagent-transcript.ts
rg -n 'approvalsReviewer|reconcileCodexSubagentReviewer|codexTurnApprovalsAreAutoReviewed|mixed parent|child.*reviewer' src/shared --glob '*.ts'Repository: stablyai/orca
Length of output: 9449
🏁 Script executed:
sed -n '1,215p' src/shared/codex-subagent-transcript.ts
sed -n '215,355p' src/shared/codex-subagent-transcript.ts
sed -n '100,215p' src/shared/agent-hook-listener/providers/codex-events.ts
sed -n '1,180p' src/shared/agent-hook-listener-codex-approval-ownership.test.ts 2>/dev/null || true
rg -n 'resolveCodexApprovalOwnedState|readApprovalsReviewer|reviewerCursorsByPath|approvalsReviewer' src/shared --glob '*.ts'Repository: stablyai/orca
Length of output: 25006
🏁 Script executed:
sed -n '1,215p' src/shared/codex-subagent-transcript.ts
sed -n '100,215p' src/shared/agent-hook-listener/providers/codex-events.ts
rg -n -A35 -B15 'resolveCodexApprovalOwnedState|codexTurnApprovalsAreAutoReviewed|readApprovalsReviewer' src/shared --glob '*.ts'
rg -n -A80 -B15 'child-first manual approval|approval ownership|auto_review|user' src/shared/agent-hook-listener-codex-approval-ownership.test.ts src/shared --glob '*test.ts' 2>/dev/nullRepository: stablyai/orca
Length of output: 50370
Scope approval reviewers to their rollout path.
reconcileCodexSubagentReviewer stores a child reviewer in the shared state.approvalsReviewer. When the next parent PermissionRequest has no new parent reviewer record, parent reconciliation retains that child value through the nullish fallback. The parent-path reset does not run because the parent path has not changed.
A child auto_review value can therefore classify a later parent approval as working and hide a user-owned prompt. The inverse case can show an auto-reviewed child as waiting.
Store reviewer state by normalized rollout path, including the parent path. Resolve the reviewer for the current event's transcript path. Add a mixed parent-and-child reviewer regression test.
AttachmentsElectron visible proof — PR #21389
|
Review status: PASS — ready to land after fixesI completed the requested review loops on PR #21389. The review found and fixed three meaningful issues without expanding scope:
Validation on final HEAD
Electron validation attached a visible screenshot to this PR after launching the exact branch worktree with CDP and verifying the app identity/branch. The requested Grok Electron worker was attempted but hit the provider's weekly usage limit, so the Electron evidence is from the fallback CDP validation. |
There was a problem hiding this comment.
Important
Reading a subagent rollout's reviewer into the shared per-pane state can hide a genuine manual approval. Details inline.
Reviewed changes
This run reviewed the delta since the prior pullfrog review (d694b08 → 37edc44).
- Child-first reviewer reconciliation —
normalizeCodexEventnow reconciles a child's rollout reviewer before classifying a childPermissionRequest, so a subagent approval no longer waits on a reviewer the parent never supplied. - Separate reviewer cursor —
reconcileCodexSubagentReviewerkeeps per-path incremental cursors (reviewerCursorsByPath, bounded at 64) so reading a child rollout does not consume the parent lifecycle cursor. - Tests — two child-first cases pin
auto_review→workinganduser→waiting.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Important
The reviewer-ownership finding from the prior review is unchanged by this delta and still reproduces; this commit only narrows when it can trigger. No new issues in the delta itself.
Reviewed changes
This run reviewed the delta since the prior pullfrog review (37edc44 → f958f687).
- Scoped child reconciliation —
normalizeCodexEventnow reconciles a child's rollout reviewer only forPermissionRequest, soPreToolUse/PostToolUse/other child activity no longer triggers a rollout read.resolveCodexApprovalOwnedStateonly consults the reviewer forPermissionRequest, so no approval classification changes.
The prior inline finding (src/shared/codex-subagent-transcript.ts:335) remains open: a child PermissionRequest still reads its rollout's reviewer into the shared per-pane state.approvalsReviewer, so a child spawned under auto_review can make a later genuine manual lead approval read working.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Review update: additional architecture fix appliedThe independent architecture challenge found one more concrete lifecycle bug in the previous review result: reviewer ownership was stored once per pane while rollout cursors were transcript-path scoped. A child-first approval could therefore overwrite or clear the parent reviewer, and a later parent approval with no new parent transcript bytes could be misclassified. Commit Final validation on
The unrelated |
Final CI updateAll GitHub-required checks for |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the delta since the prior pullfrog review (f958f687 → ecaaf20), which closes the prior child-reviewer clobber finding.
- Per-path reviewer state —
codex-subagent-reviewer.ts(new) keeps the parent rollout's reviewer instate.approvalsReviewerand each child rollout's reviewer instate.reviewersByPathkeyed by its normalized path. - Path-based resolution —
codexTurnApprovalsAreAutoReviewed(state, transcriptPath)reads the parent reviewer only when the event's path equalsstate.parent.filePath, otherwise the child's per-path entry. - Child reconcile no longer clobbers —
reconcileCodexSubagentReviewerwrites and deletes only its own path's cursor and reviewer; an unreadable child no longer clears the parent's reviewer. - Routing —
normalizeCodexEventsends a childPermissionRequestwhose path equals the parent rollout to the parent reconcile, and every other child rollout path to the reviewer reconcile. - Regression tests — two new cases pin the parent reviewer surviving both a different-reviewer child and an unavailable child rollout.
I verified the prior [!IMPORTANT] finding is resolved: a child spawned under auto_review can no longer make a later genuine manual lead approval read working. The suite passes (15 tests), and pnpm run check:code-quality:changed reports 0 new findings across the 6 changed files. An independent re-check of the reviewer-state lifecycle found no reachable sequence that reproduces the old clobber.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
@jennmueng this should fix the issue you reported:
You were right that there was no permission request from Codex. Codex asks its hooks about an approval before deciding who resolves it — ahead of both its own automatic reviewer and you. Orca was treating that as "a human is blocked", so on every gated tool call it raised a needs-input state and pinged you, and then cleared it a few seconds later when the reviewer approved. Orca now reads which reviewer owns the turn and keeps a reviewer-owned approval as ongoing work. Because the pane never enters a needs-input state, the notification never fires — and neither does the second path this bug drove, where Orca wrote an "action required" title back into the terminal along with a bell. A real approval that genuinely waits on you is untouched and still notifies. One thing that would help confirm we've covered your exact setup: by "auto mode", do you mean Codex's "Approve for me" reviewer, or the Default permission preset? They're separate settings, and the fix keys on the former. If you had Thanks for the report — it was the clearest description of the mechanism we had. |
|
Reproduced the phantom from real Codex, which this PR was merged without. Recording it here for the ticket trail. The trigger wasn't where I first looked. Two earlier attempts failed for findable reasons worth writing down: With the target moved outside the writable roots, real Codex 0.155.0 under
The captured payload also rules out the simpler fix. It carried Before/after on that exact captured event, replayed through the merged normalizer with its real rollout:
The ablation used a counted substitution that asserts exactly one match, so a stale anchor fails loudly instead of passing as a false green — which it did once here, and caught it. Verification gap, stated plainly: the rendered-UI check I ran earlier was against my original commit, before the four follow-up commits that added the per-transcript reviewer scoping. What is verified on the merged code is the normalizer path against the real captured event, plus the committed suites and typecheck. The rendered chip has not been re-checked against what actually shipped. |
|
Lovely. and yeah I meant the "approve for me" mode. Thanks @brennanb2025 ! |
…ds (#21844) * refactor(agent-status): drop two superseded Codex attention workarounds Codex fires its PermissionRequest hook as decider #1, before its own auto-reviewer and before the user, so the event never meant "a human is blocked". #21389 fixed that at the source: the execution host reads the turn's approvals_reviewer from the rollout at write time and keeps a reviewer-owned approval in `working`. Two older reader-side workarounds for the same bug are now redundant. The launch-argument suppressor guessed auto-approve mode by string-matching the launch args, then dropped the status row in the reader. It only matched Codex's bypass flag, and under that flag Codex's approval policy is `Never`, which takes the Skip path and fires no PermissionRequest at all. When the user turns on "Approve for me" inside a live session the args never change, so it never fired for the actually-reported case either. The Codex-only 1.5s notification quiet window could not do its job: measured auto-reviews take 3-20s and a human can answer in under a second, so no fixed constant separates them. Its deferred callback also re-checked liveness and returned without notifying, so a genuine prompt whose pane went non-live inside the window was dropped rather than delayed. Codex now notifies synchronously like every other agent. Also types the coordinator's completion state from the controller's exported CompletionState instead of asserting each field, which the changed-lines casting gate required once those lines moved. * fix(agent-status): settle transient process-exit evidence


ELI5
When you run Codex in Orca on its "Approve for me" setting, Codex asks a helper to
approve each command instead of asking you. Orca was treating that request as if it
were aimed at you, so the agent's label kept blinking between "Working" and "Needs
You" and you got a notification each time — while nothing was actually waiting on you.
Now Orca checks who the request was addressed to, and only says "Needs You" when the
answer is you.
What Changed
Before: a Codex agent on "Approve for me", given one ongoing task, flipped between
"Working" and "Needs You" several times a minute, with a desktop notification and a
badge on each flip. Nothing needed a human. People muted agent notifications and then
missed the real ones.
After: the label stays "Working" for the whole turn. A real approval — where Codex
is genuinely waiting on you — still shows "Needs You" exactly as before.
Mechanism. Codex's
PermissionRequesthook runs as the first decider in itsapproval chain, ahead of both its own review agent and the user. So the event means "a
decision is being made", not "a human is blocked" — and Orca was mapping it straight to
a waiting state with no qualification.
The execution host now reads the turn's
approvals_reviewerand keeps areviewer-owned approval as
working. It reads it off the session rollout Orca alreadytails incrementally for subagent reconciliation, from the same
turn_contextrecord italready parses for the child model — so there is no new file I/O, no new polling, and no
new store. The decision happens once, at write time, on the host that owns the process,
so every reader (sidebar,
worktree ps, mobile, dashboard) gets the same answer.request_user_inputis deliberately untouched: it arrives as aPreToolUseand noreviewer can answer a question addressed to the user.
Why
Positive evidence only, so it cannot hide a real prompt. An absent field, an older
Codex build, or an unreadable rollout all still raise the wait — that is the pre-existing
behaviour. The change can only ever turn a false "Needs You" into "Working".
Alternatives considered and rejected:
notification, never the label. Reporters measured auto-reviews at 3s and 20s, and a
person can answer in under a second, so no fixed delay separates the two cases.
permission_modefield already on the hook payload. It onlydistinguishes Codex's "Full Access"; "Approve for me" is a separate reviewer setting,
so the reported sessions report the ordinary value and the bug would survive.
genuine approval invisible in Manual mode, which Orca supports.
suppression does. It compares the whole arguments string for an exact match, so it
misses a mode changed inside the session (the reported case), extra flags alongside the
right one, settings in
config.toml, and any pane Orca did not launch itself.Also splits the incremental rollout JSONL cursor into its own module. The new reader put
codex-subagent-transcript.tsover the file-length cap, and the cursor is aself-contained concern already shared by the parent and child readers.
Linked Issue
Fixes #21051
Visual Proof
One frame, both cases, driven through the real hook server in a dev instance on this branch:
reviewer. It still raises the attention title, exactly as before. This is also what the pane
looked like on every approval before this change, because the reviewer was never consulted.
naming the auto-reviewer. Plain title, no attention marker, no unread badge.
Backing state read from the renderer store for tab 2 after the turn:
That last line matters: because the row never reaches a waiting state, the synthetic attention
title and its trailing bell are never injected either, so the second notification path this bug
also drove goes quiet without being touched.
Testing
New suite
src/shared/agent-hook-listener-codex-approval-ownership.test.ts(8 cases):a reviewer-owned approval reads as working; a user-owned one still waits; an absent
reviewer, an unreadable rollout, and a missing transcript path all still wait;
request_user_inputstill waits under auto review; one session's reviewer does not leakinto the next rollout; and a full turn never flaps.
Ablation: disabling the single qualifier fails exactly the 3 behaviour cases while the 5
no-hiding guards keep passing, so the suite discriminates rather than passing trivially.
Regression: the related existing suites pass unchanged — subagent transcript, the
codex/hermes/droid listener suite, startless child lifecycle, interactive prompts,
extraction characterization, and relay hook integration (68 tests total).
Gates:
pnpm tc,oxlint, andpnpm run check:code-quality:changedall clean.Platforms: logic is platform-neutral and lives in the shared normalizer that both the
local hook server and the SSH relay call, so a remote host reads its own rollout — which
is the only host that can. Verified on macOS; not yet exercised on Windows or Linux, and
the SSH path is covered by the relay suite rather than a live run.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Backwards compatibility: the reviewer field is optional and absence preserves today's
behaviour, so older Codex builds are unaffected. No wire change — the status row keeps
its shape and vocabulary, so mixed-version paired clients see no difference. Performance:
no new reads, no new polling, no new subprocess; the rollout records were already being
parsed in the same loop. Security: reads only a file Codex itself wrote inside the home
Orca manages.
Related but deliberately out of scope: the same class affects Copilot
/allow-all(#19780) and OpenCode Auto (#18950), each with one report; and the terminal-title
heuristic matches "permission" and "waiting" as raw substrings, which is a separate
mechanism with its own report.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)