CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

WebKit.WebContent process stuck at 100% CPU when popover is closed

Open OscarBarreraGithub opened this issue 7 months ago • 5 comments

Description

CodexBar's com.apple.WebKit.WebContent process consumes an entire CPU core at 100% indefinitely, even when the popover is closed. The process ignores SIGTERM and requires kill -9 to stop. On memory-constrained machines (8 GB), this also pushes the system deep into swap, compounding the thermal and performance impact. The user has no visible indication that anything is wrong — the menu bar icon continues to function normally while the machine overheats in the background.

Steps to Reproduce

  1. Launch CodexBar (normal usage, popover closed)
  2. Observe CPU usage via ps -eo pid,pcpu,comm -r
  3. com.apple.WebKit.WebContent appears at ~100% CPU

Exact trigger is unknown — happened during normal background operation.

Expected Behavior

WebKit process should be idle or near-zero CPU when the popover is closed and no refresh is active.

Actual Behavior

WebKit renderer stuck at 100% CPU indefinitely. Regular kill (SIGTERM) was ignored — required kill -9. After force-killing, CodexBar respawned a healthy WebKit process and continued working normally.

Environment

  • CodexBar 0.18.0-beta.3
  • macOS 26.3 (build 25D125)
  • Apple M2, 8 GB RAM

OscarBarreraGithub avatar Apr 14 '26 02:04 OscarBarreraGithub

same problem

Smallfu666 avatar Apr 15 '26 02:04 Smallfu666

same issue

0seba avatar Apr 15 '26 13:04 0seba

I'm also getting 100% CPU usage, not sure if this is related.

Image

lachlanmcmillan avatar Apr 17 '26 02:04 lachlanmcmillan

We have made changes in latest main to help with this issue and also adding a battery saver option in the settings to mitigate this. For now, please disable the "OpenAI Web Extras" option in Codex settings to help with battery drain issue.

ratulsarna avatar Apr 17 '26 07:04 ratulsarna

Closing as fixed/stale against current main. Since this 0.18-era report, OpenAI web extras were made opt-in, WebKit views are idled/teardown-managed after use, and recent cost-scan fixes removed the heavy background rescans that could keep the app busy. I also live-checked the freshly packaged current build: after launch, the WebKit helper settled back to 0% CPU while CodexBar stayed running. If a current build still leaves com.apple.WebKit.WebContent pinned near 100% after a few minutes idle, please open a fresh issue with logs from that build and the enabled provider list.

steipete avatar May 10 '26 13:05 steipete