codex - 💡(How to fix) Fix Permissions prompt causes high energy use and causes battery drain during sleep on MacOS [3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17799Fetched 2026-04-15 06:28:02
View on GitHub
Comments
3
Participants
3
Timeline
13
Reactions
0
Timeline (top)
labeled ×5commented ×3unlabeled ×2mentioned ×1

Root Cause

A few hours later the battery is significantly lower or dead. It appears to be caused by the terminal rendering animations.

RAW_BUFFERClick to expand / collapse

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

Not the app, codex-cli 0.120.0

What subscription do you have?

Pro

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

When Codex is idle, it's energy impact is 0.0 however if left idle on a permissions prompt as screenshotted below, the energy impact spikes and causes battery drain, even when the computer is put to sleep.

<img width="1699" height="533" alt="Image" src="https://github.com/user-attachments/assets/44e05ad8-fd4f-47d9-aa90-26ace0650e1d" />

What steps can reproduce the bug?

  1. Request and edit that stops on request for elevated permissions
  2. Put Mac to sleep

A few hours later the battery is significantly lower or dead. It appears to be caused by the terminal rendering animations.

What is the expected behavior?

No battery drain; Codex process pauses/sleeps animations while Mac is asleep.

Additional information

No response

extent analysis

TL;DR

The issue can likely be mitigated by finding a way to pause or stop terminal rendering animations when the Mac is put to sleep.

Guidance

  • Investigate if there's an option in codex-cli to disable animations or set a timeout for idle sessions to prevent continuous rendering.
  • Check if there are any configuration settings or environment variables that can be adjusted to control the behavior of codex-cli when the system is asleep.
  • Consider filing an issue with the codex-cli developers to report the battery drain problem and request a fix or workaround.
  • Look into system settings or third-party tools that can help manage or limit background process activity when the Mac is in sleep mode.

Example

No specific code example is provided as the issue seems related to the behavior of the codex-cli tool itself rather than user-written code.

Notes

The solution might depend on the specific implementation details of codex-cli and its handling of system sleep events. Further investigation into the tool's documentation or source code may be necessary.

Recommendation

Apply workaround: Given the information, it seems more feasible to look for a workaround, such as disabling animations or using system settings to manage background activity, rather than waiting for an upgrade to a potentially fixed version of codex-cli.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING