You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent stuck on "Waited for background terminal" after command finishes #14314
What terminal emulator and version are you using (if applicable)?
terminator 2.1.4 (on debian)
What issue are you seeing?
The agent ran a background command (cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings). The command finished execution and printed a compilation error to the terminal. However, the agent failed to detect the completion or read the output. Instead, it got stuck in an infinite loop, continuously logging • Waited for background terminal until I manually interrupted the process.
What steps can reproduce the bug?
Ask the agent to run a background command that results in a compilation error (in my case, cargo clippy).
The terminal successfully outputs the compilation error.
Observe the agent failing to read the output and continuously logging "Waited for background terminal".
The agent should successfully detect when the background terminal process finishes, read the output (the compilation error), and proceed to analyze or fix the error instead of getting stuck in a waiting loop.
Same issue, very annoying! Basically makes the agent not autonomous even though it suggests it's "watching". I have to babysit it all the time for sessions that are heavy on long compile time or test suite calls. There doesn't seem to be a way to make the call on the foreground anymore (thus blocking the agent, which automatically means it will act on it later). Seems to be a general issue either with GPT 5.4 and or the latest versions of Codex. I don't remember having this issue a few weeks ago with GPT 5.3 Codex.
Activity
github-actions commentedon Mar 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
no1x0 commentedon Mar 11, 2026
Duplicate of #14303
fullofcaffeine commentedon Mar 11, 2026
Same issue, very annoying! Basically makes the agent not autonomous even though it suggests it's "watching". I have to babysit it all the time for sessions that are heavy on long compile time or test suite calls. There doesn't seem to be a way to make the call on the foreground anymore (thus blocking the agent, which automatically means it will act on it later). Seems to be a general issue either with GPT 5.4 and or the latest versions of Codex. I don't remember having this issue a few weeks ago with GPT 5.3 Codex.
docs: explain temporary cli-run workaround (openai/codex#42908, opena…