Missing User Confirmation Interface for Long Script Execution (eg. GraphQL queries with long Query)
What version of Codex is running?
codex-cli 0.25.0
Which model were you using?
gpt-5 medium
What platform is your computer?
Linux 6.8.0-79-generic x86_64 x86_64
What steps can reproduce the bug?
- Start Codex CLI in terminal
- Request Codex to generate or execute a long GraphQL query (multiple lines, complex structure)
- Observe the terminal output when Codex prepares to execute the script
- Notice the lack of clear user confirmation interface
- The terminal shows the script content but provides no clear indication of what user action is required
What is the expected behavior?
When Codex needs user approval to execute scripts (especially long ones like GraphQL queries), the interface should provide:
- Clear confirmation prompt with explicit options (e.g., "Press Enter to execute, Ctrl+C to cancel")
- Script preview with reasonable length limits - either:
- Truncate long scripts with "..." and option to view full content
- OR display full script in a readable format
- Toggle functionality (e.g., Ctrl+[key] to collapse/expand script view)
- Clear visual separation between the script content and the action prompt
- User guidance indicating available actions
What do you see instead?
- Long script content is displayed without truncation, making it difficult to see the full context
- No clear confirmation prompt or user guidance about required actions
- User must know implicitly that pressing Enter will execute the script
- No visual indication of what constitutes the executable script vs. terminal output
- No option to collapse/expand lengthy script content for better readability
- Poor user experience for enterprise users who need to review scripts before execution
Additional information
Environment Details:
- Related Commit: bbcfd63
- Use Case: Enterprise environment with GraphQL queries
- Impact: Critical for enterprise users who need to review and approve scripts before execution
Visual Evidence:
<img width="998" height="732" alt="Image" src="https://github.com/user-attachments/assets/c1993566-d8c3-4ab8-860c-2aaddff31afb" />
Suggested Solutions:
- Script Length Management:
````
GraphQL Query (234 lines) - Press 'f' to view full, Enter to execute, Ctrl+C to cancel
[Truncated preview of first 10-15 lines]
...
[Last 5 lines of script]
- Toggle Control:
- Ctrl+F: Toggle full/collapsed view
- Ctrl+E: Execute
- Ctrl+C: Cancel
- Clear Confirmation Interface:
````
┌─ Ready to execute GraphQL query ─┐
│ [E]xecute [V]iew Full [C]ancel │
└──────────────────────────────────┘
Priority: High - affects user confidence and enterprise compliance requirements where script review is mandatory before execution.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗