Throttle CodexBar session refreshes - #48
Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
TL;DR
Reduce near-continuous CodexBar process churn by increasing Agent Touch Bar’s default session refresh TTL from 0.75 to 10 seconds. Session state remains bounded to an interactive update interval.
Closes #47
Problem
codexbar sessions --json-v2takes 1.5–5.1 seconds on the affected Mac. Agent Touch Bar waited only 0.75 seconds after each completed collection before starting another, so a CodexBar child process was present nearly continuously.Change
DEFAULT_SESSION_TTLand lock it with a regression test.Verification
PYTHONPATH=src python3 -m unittest discover -s tests -v— 72 tests passedpyright src tests— 0 errorspython3 -m compileall -q src testsswift test --package-path native— 9 tests passedgit diff --checkValidation boundary
The configuration and regression tests verify the new cadence contract. Live installed-process cadence and CPU readback remain for post-merge installation verification on the affected Mac.