feature request: ability to interrupt codex part-way through response.

Resolved 💬 5 comments Opened Apr 16, 2025 by FraserLee Closed Apr 16, 2025
💡 Likely answer: A maintainer (jonchurch, contributor) responded on this thread — see the highlighted reply below.

When it's obvious the agent is going down the wrong pathway, the current user-flow either requires quitting and restarting from scratch with better instructions, or allowing it to finish its attempt before clarifying the situation. It would be nice to instead be able to instead interrupt with additional instructions part-way.

View original on GitHub ↗

5 Comments

samreid · 1 year ago

If you press escape twice, it is supposed to return control to the user. But often after I do so, I get errors like unknown tool call.

FraserLee · 1 year ago

@samreid thanks for pointing that out. Is there documentation for that somewhere I'm missing?

samreid · 1 year ago

After running codex, /help shows this dialog:

╭──────────────────────────────────────────────────────────────────────────────╮
│ Available commands                                                           │
│                                                                              │
│ Slash‑commands                                                               │
│ /help – show this help overlay                                               │
│ /model – switch the LLM model in‑session                                     │
│ /approval – switch auto‑approval mode                                        │
│ /history – show command & file history for this session                      │
│ /clear – clear screen & context                                              │
│                                                                              │
│ Keyboard shortcuts                                                           │
│ Enter – send message                                                         │
│ Ctrl+J – insert newline                                                      │
│ Up/Down – scroll prompt history                                              │
│ Esc(✕2) – interrupt current action                                           │
│ Ctrl+C – quit Codex                                                          │
│ esc or q to close                                                            │
╰──────────────────────────────────────────────────────────────────────────────╯
jonchurch contributor · 1 year ago

@FraserLee did ESC+ESC provide you with what you needed?

If so, this can be closed

FraserLee · 1 year ago

Yep, that'd work. I do have it crash after with the unknown tool call error, but that should be a separate issue.