Need a "take over" feature when users need to edit commands or input password and then back to agent's workflow

Resolved 💬 2 comments Opened Mar 4, 2026 by Wdxumire Closed May 10, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

CLI

What feature would you like to see?

There are some inconveniences when generating and executing terminal commands, such as manually modifying commands before execution or encountering permission issues that require entering a password during the process. Exposing the password directly to Codex would obviously raise security concerns.
The examples I mentioned are not the only cases. Based on the above reasons, I hope to have a "take over" function that allows users to take over before execution, manually modify commands and execute them directly (Shell mode), or enter a password (Shell mode), and then return to the Agent's workflow. This would make many things more convenient. Entering the password directly into the terminal might also provide some security assurance.

Additional information

_No response_

View original on GitHub ↗

2 Comments

mellowmarshall · 5 months ago

Additional support for this request from real CLI usage:

A very practical version of this would be an escape-to-bash or temporary shell handoff directly inside the TUI. The goal is not a permanent shell mode, just a fast way to momentarily drop into the terminal for things like:

  • sudo / package installs that need password entry
  • editing or retrying a generated command before running it
  • one-off interactive shell commands that are awkward to route through the agent

Then return straight back to the agent session without needing to tab between terminal windows or suspend/resume the process.

That would make the TUI much smoother for real production work, especially when the only blocker is a password prompt or a short manual command.

etraut-openai contributor · 3 months ago

This feature request hasn't received enough upvotes, so I'm going to close it.