Repository navigation
Update Caffeinate tooltip copy about MacBook lid behavior - #23091
Conversation
Update tooltip and settings pane help text to accurately describe Caffeinate's behavior: it prevents idle sleep while active, but MacBook lid closing may still trigger sleep per device power policy. The previous copy incorrectly suggested Orca could prevent lid-close sleep.
There was a problem hiding this comment.
ℹ️ No critical issues — a couple of copy-consistency points inline.
Reviewed changes
Copy-only PR correcting the Caffeinate / keep-awake description that claimed Orca keeps a device awake with the lid closed. Reviewed the full diff plus the surrounding i18n plumbing and both updated tests (passing locally).
- Status-bar tooltip —
CaffeinateStatusSegment.tsxnow appends a newtooltipDescriptionsentence after the existingariaLabel. - Settings description —
modeDescriptionDefaultand the legacyagent-awake-copy.a42f6fbdd8inen.json/en-runtime-required.jsonpoint at the new sentence. - Tests —
AgentsPane.test.tsxasserts the new default description; the zh localization test asserts the untranslated English tooltip fallback.
The new tooltipDescription key ships English-only, which matches the repo convention (verify-localization-catalog.mjs: feature PRs own English declarations, localization passes follow). Tests pass.
ℹ️ Source fallback still carries the old claim
getAgentAwakeDescription()'s default-locale fallback literal was not updated alongside the catalog, so the exact copy this PR removes still lives in the renderer source. It is invisible at runtime today (the en.json entry wins, and the runtime-required prune actually depends on fallback ≠ catalog to keep shipping the key), so this is consistency debt rather than a live bug.
Technical details
# agent-awake-copy.ts fallback is stale
## Affected sites
- `src/renderer/src/components/settings/agent-awake-copy.ts:37` — fallback still reads "…Orca also asks this device to stay awake when the lid is closed, subject to its power policy."
## Required outcome
- The literal fallback should match the updated `en.json` `modeDescriptionDefault` value (or be intentionally documented as stale), so the source of truth does not contradict the shipped copy.
## Open questions for the human
- If the fallback is updated to match, `modeDescriptionDefault` becomes droppable from `en-runtime-required.json` (fallback == catalog); regenerate that file with `pnpm run sync:localization-runtime-catalog`.ℹ️ Nitpicks
CaffeinateStatusSegment.localization.test.tsx:200-202pins the untranslated English sentence for thezhlocale. It proves the new key is wired, but it also encodes "this string stays English" — it will need updating when a zh translation lands. Asserting the localized+fallback split differently (e.g. that the tooltip contains the localizedariaLabel) would survive translations.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe agent-awake descriptions now state that Caffeinate prevents idle sleep while active, but closing a MacBook lid may still cause sleep. The Caffeinate status tooltip now includes this explanation. Tests check the updated setting description and tooltip. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No new merge-blocking issue is established. The MacBook-specific wording on shared desktop surfaces remains a previously reported copy concern. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

Problem
The tooltip and settings descriptions for Caffeinate claim that Orca asks the device to stay awake when the lid is closed. This is inaccurate—MacBook lid behavior is controlled by the device's power settings, not by Orca. The misleading copy could confuse users about what Caffeinate actually controls.
Solution
Updated the copy to clarify that Caffeinate prevents idle sleep while active, but closing a MacBook lid may still put it to sleep (following device power policy). This is more honest about what the feature actually does.
ELI5
Fixed the tooltip to stop claiming Orca keeps your Mac awake even when you close the lid. It now explains that Caffeinate prevents idle sleep, but your Mac's power settings control what happens when you physically close the lid.
What Changed
Updated tooltip and settings descriptions in
CaffeinateStatusSegment.tsx, and corresponding i18n strings inen-runtime-required.jsonandlocales/en.json. Test snapshots updated to match the new copy.Why
The previous text overstated Orca's control. Caffeinate manages idle sleep, but lid behavior is a device power setting. This version is more accurate and sets proper expectations.
Linked Issue
Fixes #
Visual Proof
N/A — copy-only change.
Testing
Test snapshots in
AgentsPane.test.tsxandCaffeinateStatusSegment.localization.test.tsxupdated and passing.AI Disclosure
N/A
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)