openai / openai/codex

[Linux][ChatGPT desktop] Active Codex task does not inhibit system sleep

Open
#38,845 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.803.81509

What subscription do you have?

Pro

What platform is your computer?

Linux 7.0.0-29-generic x86_64 unknown

What issue are you seeing?

ChatGPT allows Linux to sleep during active Codex tasks, pausing local work. systemd-inhibit --list shows no blocking ChatGPT/Codex inhibitor.

What steps can reproduce the bug?
  1. Enable automatic sleep.
  2. Ask Codex to run sleep 900.
  3. Stop interacting.
  4. The computer sleeps before the task finishes.

...or ask codex if it's currently inhibiting sleep.

What is the expected behavior?

Prevent automatic sleep while a Codex task runs. Release the inhibitor when it ends.

Additional information

Ubuntu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with automatic sleep enabled and sleep 900, then inspect systemd-inhibit --list while the Codex task is running. Done means an inhibitor appears for the active task, prevents automatic sleep, and is released when the task ends.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.