Add global low power mode - #2518
Conversation
Clamp automatic provider, local usage, storage, and OpenAI Web work while preserving manual refreshes. Co-authored-by: OpenAI Codex <215057067+openai-codex[bot]@users.noreply.github.com>
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 1:02 PM ET / 17:02 UTC. ClawSweeper reviewWhat this changesAdds a default-off Global Low Power Mode setting that limits automatic provider, local-usage, storage, and OpenAI Web background refresh behavior to at least 30 minutes while leaving manual refresh available. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for maintainer product review and real after-fix behavior proof. The implementation is a coherent, default-off proposal, but it adds a new app-wide preference that changes several refresh policies and has no maintainer-confirmed direction or attached live proof yet. Priority: P3 Review scores
Verification
How this fits togetherCodexBar’s settings store feeds refresh policy into provider polling, local token/cost scans, storage-footprint scans, and optional OpenAI Web enrichment. This PR adds one persisted preference and applies a shared interval policy at those automatic scheduling seams. flowchart LR
A[User settings] --> B[Global Low Power Mode]
B --> C[Shared background power policy]
C --> D[Provider refresh timers]
C --> E[Local usage scans]
C --> F[Storage scans]
B --> G[OpenAI Web saver gate]
D --> H[Updated menu data]
E --> H
F --> H
G --> H
Decision needed
Why: The implementation is technically bounded, but the linked canonical request is explicitly a product-choice issue: maintainers must decide whether an app-wide preset is preferable to a narrower clarification of the existing OpenAI Web-only saver. Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: If maintainers approve the global-control direction, retain the centralized policy and add redacted real-app proof showing enablement, a clamped automatic path, an immediate manual refresh, and persistence after relaunch. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes new opt-in behavior rather than repairing an established failing contract. Its automated coverage describes the intended scheduling rules, but no real-app proof is attached. Is this the best way to solve the issue? Unclear: centralizing the 30-minute floor in one pure policy is a maintainable implementation, but maintainers must first confirm that this app-wide preference is the preferred product direction over a narrower clarification of the existing OpenAI Web saver. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8ef86077e70a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Fixes #2508
Summary
OpenAI web battery saverfrom the global controlBehavior
Validation
plutilandgit diff --checkpassCodexBarproduct build passed locally with the repository's Command Line Tools compatibility flagsThe local ad-hoc no-Widget packaging used for manual testing is not part of this PR.
🤖 Generated with OpenAI Codex