Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(settings): keep-awake toggle in Behavior section

enesa80fae39b7dd
diff --git a/src/renderer/components/settings/sections/BehaviorSection.tsx b/src/renderer/components/settings/sections/BehaviorSection.tsx
index 667310665..9b0435c8b 100644
--- a/src/renderer/components/settings/sections/BehaviorSection.tsx
+++ b/src/renderer/components/settings/sections/BehaviorSection.tsx
@@ -28,6 +28,10 @@ const ROWS = {
dragMode: {
title: 'Canvas left-drag',
keywords: ['pan', 'drag', 'select', 'canvas', 'mouse', 'grab', 'figma', 'miro']
+ },
+ keepAwake: {
+ title: 'Keep awake while agents work',
+ keywords: ['sleep', 'awake', 'power', 'battery', 'suspend', 'run']
}
}
const ENTRIES = Object.values(ROWS)
@@ -171,6 +175,19 @@ export function BehaviorSection({ isActive }: { isActive: boolean }): React.JSX.
}
/>
</SearchableRow>
+ <SearchableRow {...ROWS.keepAwake}>
+ <FieldRow
+ label="Keep awake while agents work"
+ description="Holds off idle sleep while a local agent is running. A closed lid still sleeps the machine."
+ control={
+ <Switch
+ checked={settings.keepAwakeWhileAgentsWork}
+ onChange={(v) => update({ keepAwakeWhileAgentsWork: v })}
+ ariaLabel="Keep awake while agents work"
+ />
+ }
+ />
+ </SearchableRow>
</SettingsSection>
)
}