Repository navigation
fix(codex): match the 0.156+ folder-trust dialog in the prompt detector - #446
Merged
Merged
Conversation
Codex 0.156.0 replaced "Do you trust the contents of this directory?" / "Yes, continue" / "No, quit" with a "Folder access" dialog: "Trust this folder?", "1. Trust and continue", "2. Quit" (or "Back to Agent Command Center" when the TUI runs on the background server) and the hint "enter continue · esc quit|back". The codex_workspace_trust signature still keyed on the old text, so a non_interactive session parked on the dialog was never failed. The images have pinned 0.156.1 or newer since #303, so the old wording is dropped rather than kept alongside. Markers are the question and the first option label, which stay on one line at any pane width; the footer is the key hint or the final option. Fixtures come from a real 0.161.0 tmux capture and the CLI's insta snapshots. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
This was referenced Oct 8, 2026
Merged
Merged
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.
What
InteractivePromptDetector'scodex_workspace_trustsignature never matched the dialog that current Codex shows. When anon_interactivestep was parked on the folder-trust dialog, the step was never failed: it sat atreadyuntil it timed out, the failure that task #605 introduced this detector for.Codex 0.156.0 replaced the old dialog in openai/codex#44732 and #46695. Our images have pinned 0.156.1 or newer since #303, so the old text no longer appears anywhere we run:
Do you trust the contents of this directory?Trust this folder? Codex can read, edit, and run files here, …1. Yes, continue/2. No, quit1. Trust and continue/2. Quit(2. Back to Agent Command Centerwhen the TUI runs on the background server)Press enter to continueenter continue · esc quit(esc backon the background server)Where the text comes from
aixle/codex(tmux capture-pane -p), both in-process and on the background server.codex-rs/tui/src/onboarding/trust_directory.rsand its insta snapshots; the 0.156.1 and 0.161.0 snapshots are identical..codex/layers load only in trusted projects,projects.<path>.trust_levelrecords the choice, and a session may start read-only through an onboarding prompt. None of them quote the dialog, so the wording comes from the source and the capture.Changes
esc quit/esc back), or the last option when the pane is captured before the hint renders. It is anchored to the start of the line, so prose that quotes the phrases mid-sentence does not count.Verification
Not covered
ScanQuotaErrorsActivity#live_terminal_outputjoins exec output chunks with"\n", so a chunk boundary in the middle of the footer line could hide the dialog for one sweep. This gap predates this change and is not touched here.Related: #443 (CLI pin bump).
🤖 Generated with Claude Code