Codex is not able to access its own background processes after compactation

Open 💬 2 comments Opened Apr 2, 2026 by iblue

What version of Codex CLI is running?

codex-cli 0.118.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 6.12.[redacted].x86_64 x86_64 [redacted]

What terminal emulator and version are you using (if applicable)?

xfce4-terminal

What issue are you seeing?

Codex started a long running process (takes about 30 min to complete). After compaction, it is not able to access it. Then gaslights me that no background process is running. After questioning explains that it needs the session_id of the terminal to access the background processes and that that go lost. Tells me, it is a tooling issue.

What steps can reproduce the bug?

Uploaded thread: 019d4eab-adfa-7b30-92dd-ffe43e6d596f

What is the expected behavior?

Codex should not require a session_id to access its background jobs, should be able to list background jobs it started and query them OR session_id should survive compaction in any case.

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗