Repository navigation
fix(live): spawn answers Codex's hooks-review prompt without trusting - #181
Merged
Merged
Conversation
A Codex whose hooks changed since they were last trusted stops on "Hooks need review" before it registers, so `live spawn codex` timed out. Spawn now picks "Continue without trusting" on the tmux screen: those hooks stay off for the agent and nothing is trusted. --dangerously-bypass-hook-trust is not used: it would run hooks nobody vetted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
live spawn codextimed out whenever Codex had hooks that were new or changed since they were last trusted (today: Orca rewrote~/.codex/hooks.json). Codex stops on "Hooks need review" before it registers, so spawn gave up after 120 s.Codex 0.169.0 offers one flag for this,
--dangerously-bypass-hook-trust, which runs the untrusted hooks. Its help reserves it for "automation that already vets hook sources", and spawn vets nothing, so it is not used.--disable codex_hooksalso clears the prompt, but it switches off the user's trusted hooks too.Instead,
spawn.wait_fornow calls anon_pollcallback. For Codex,prompt_answererwatches the tmux screen and presses3("Continue without trusting") once. The changed hooks stay off for that agent, the trusted ones keep running, and nothing is written to the trust store. When no known prompt shows, it sends no keys.Proof: a scratch folder with an untrusted project hook in
.codex/hooks.json.codexstopped on the prompt.live spawn codex --timeout 60, run from a main Claude session, printedstarted codex:01a24160-…and the agent answered "hi".config.tomlgained no trust entry.live stop hooktrust-proof --yesended it.Nothing to do before merge or deploy.