Skip to content

Conversation

@apanasenko-oai
Copy link
Collaborator

No description provided.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 153 to 160
));
match approval_policy {
AskForApproval::Never => {
lines.push(" <interactive_mode>false</interactive_mode>".to_string());
}
_ => lines.push(" <interactive_mode>true</interactive_mode>".to_string()),
};
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not treat Never approval mode as non-interactive

Equating AskForApproval::Never with a non-interactive session isn’t correct. We still run fully interactive flows (e.g. the TUI/CLI with --dangerously-bypass-approvals-and-sandbox) where the user is present, but we set approval_policy to Never just to skip command prompts (codex-rs/tui/src/lib.rs). With the new branch we would emit <interactive_mode>false</interactive_mode> for those sessions, telling the model it cannot ask the user for anything even though the UI is interactive. That regresses the interactive experience. Please derive interactive_mode from the actual session source/flag rather than the approval policy, or omit the field until we can do so.

Useful? React with 👍 / 👎.

Copy link
Collaborator

@aibrahim-oai aibrahim-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually hold a second. Never isn't necessarily non interactive

Copy link
Collaborator

@tibo-openai tibo-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, meant to comment that I don't think this is quite correct and not approve.

@etraut-openai etraut-openai added the oai-pr PRs posted by Codex team members label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai-pr PRs posted by Codex team members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants