fix(desktop): keep remote connections available during idle sleep #7640
ClosedChrisMarstaller(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/7640/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -24,3 +25,4 @@2425 handler: Effect.fn("desktop.ipc.clientSettings.set")(function* (settings) {2526 const clientSettings = yield* DesktopClientSettings.DesktopClientSettings;2627 yield* clientSettings.set(settings);28+ yield* DesktopSleepPrevention.applyClientSettings(settings);
- @@ -1709,0 +1723,21 @@1723+ {...searchableSetting("prevent-automatic-sleep")}1724+ description="Keep this computer available to remote clients by preventing automatic idle sleep while T3 Code runs. The display may turn off; closing a laptop lid can still sleep it."1725+ status={1726+ preventSleepForRemoteConnections ? null : (1727+ <span className="block text-warning">1728+ Remote connections can become unavailable when this computer sleeps.1729+ </span>1730+ )1731+ }1732+ control={1733+ <Switch1734+ checked={preventSleepForRemoteConnections}1735+ onCheckedChange={(checked) =>1736+ updateClientSettings({ preventSleepForRemoteConnections: Boolean(checked) })1737+ }1738+ aria-label="Prevent automatic sleep for remote connections"1739+ />1740+ }1741+ />1742+ );1743+}
juliusmarminge closed this
Sign in to join this conversation.





Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
8cddaf12-2492-44e5-b1dc-ad496f3d9601You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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.
❤️ Share