Skip to content

Reduce OpenAI WebView idle CPU#375

Open
jperezr21 wants to merge 2 commits intosteipete:mainfrom
jperezr21:codex/reduce-openai-webview-idle-cpu
Open

Reduce OpenAI WebView idle CPU#375
jperezr21 wants to merge 2 commits intosteipete:mainfrom
jperezr21:codex/reduce-openai-webview-idle-cpu

Conversation

@jperezr21
Copy link

@jperezr21 jperezr21 commented Feb 14, 2026

This reduces idle CPU usage from CodexBar’s offscreen OpenAI dashboard WKWebView cache.

  • Stop loading and detach the cached WebView from its host window when hidden so WebKit can fully suspend background activity.
  • Reattach the WebView when showing it for the next scrape.

@ratulsarna
Copy link
Collaborator

Thanks for the PR! Could we add a regression test that verifies this detach path (and the reattach path in show()) across release/reacquire, so we can catch any future drift in the idle-CPU behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants