fix(ui): rename caffeinate auto mode to agent

This commit is contained in:
Brennan Benson
2026-08-10 22:21:32 -07:00
parent 9f8c22c7f9
commit a0c2209b3e
7 changed files with 23 additions and 14 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@@ -57,7 +57,7 @@ export function AgentAwakeSetting({
},
{
value: 'auto',
label: translate('auto.components.settings.AgentAwakeSetting.auto', 'Auto')
label: translate('auto.components.settings.AgentAwakeSetting.auto', 'Agent')
},
{
value: 'off',
@@ -244,10 +244,10 @@ describe('AgentsPane', () => {
expect(markup).not.toContain('aria-label="Agent runtime"')
expect(markup).toContain('Keep computer awake')
expect(markup).toContain(
'Choose On, Auto while agents are working, or Off. Orca also asks this device to stay awake when the lid is closed, subject to its power policy.'
'Choose On, Agent, or Off. Agent mode stays awake while agents are working. Orca also asks this device to stay awake when the lid is closed, subject to its power policy.'
)
expect(markup).toContain('role="radiogroup"')
expect(markup).toContain('>Auto<')
expect(markup).toContain('>Agent<')
})
it('hides desktop-only awake modes in paired web clients', () => {
@@ -316,7 +316,7 @@ describe('AgentsPane', () => {
it('describes Windows lid behavior according to the device', () => {
expect(getAgentAwakeDescription('Windows')).toBe(
"Choose On, Auto while agents are working, or Off. Lid-close behavior follows this device's power settings."
"Choose On, Agent, or Off. Agent mode stays awake while agents are working; lid-close behavior follows this device's power settings."
)
})
@@ -17,13 +17,13 @@ export function getAgentAwakeDescription(
if (userAgent.includes('Windows')) {
return translate(
AGENT_AWAKE_DESCRIPTION_WINDOWS_KEY,
"Choose On, Auto while agents are working, or Off. Lid-close behavior follows this device's power settings."
"Choose On, Agent, or Off. Agent mode stays awake while agents are working; lid-close behavior follows this device's power settings."
)
}
return translate(
AGENT_AWAKE_DESCRIPTION_DEFAULT_KEY,
'Choose On, Auto while agents are working, or Off. Orca also asks this device to stay awake when the lid is closed, subject to its power policy.'
'Choose On, Agent, or Off. Agent mode stays awake while agents are working. Orca also asks this device to stay awake when the lid is closed, subject to its power policy.'
)
}
@@ -31,7 +31,7 @@ function modeLabel(mode: ComputerAwakeMode): string {
return translate('auto.components.status.bar.CaffeinateStatusSegment.on', 'On')
}
if (mode === 'auto') {
return translate('auto.components.status.bar.CaffeinateStatusSegment.auto', 'Auto')
return translate('auto.components.status.bar.CaffeinateStatusSegment.auto', 'Agent')
}
return translate('auto.components.status.bar.CaffeinateStatusSegment.off', 'Off')
}
@@ -137,7 +137,10 @@ export function CaffeinateStatusSegment({
</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuRadioGroup value={mode} onValueChange={setMode}>
<DropdownMenuRadioItem value="on" className="items-start py-1.5">
<DropdownMenuRadioItem
value="on"
className="items-start py-1.5 [&>span:first-child]:translate-y-0.5"
>
<span className="flex flex-col">
<span>{modeLabel('on')}</span>
<span className="text-[11px] font-normal text-muted-foreground">
@@ -148,7 +151,10 @@ export function CaffeinateStatusSegment({
</span>
</span>
</DropdownMenuRadioItem>
<DropdownMenuRadioItem value="auto" className="items-start py-1.5">
<DropdownMenuRadioItem
value="auto"
className="items-start py-1.5 [&>span:first-child]:translate-y-0.5"
>
<span className="flex flex-col">
<span>{modeLabel('auto')}</span>
<span className="text-[11px] font-normal text-muted-foreground">
@@ -159,7 +165,10 @@ export function CaffeinateStatusSegment({
</span>
</span>
</DropdownMenuRadioItem>
<DropdownMenuRadioItem value="off" className="items-start py-1.5">
<DropdownMenuRadioItem
value="off"
className="items-start py-1.5 [&>span:first-child]:translate-y-0.5"
>
<span className="flex flex-col">
<span>{modeLabel('off')}</span>
<span className="text-[11px] font-normal text-muted-foreground">
+4 -4
View File
@@ -3629,7 +3629,7 @@
},
"CaffeinateStatusSegment": {
"on": "On",
"auto": "Auto",
"auto": "Agent",
"off": "Off",
"active": "Active",
"inactive": "Inactive",
@@ -9500,8 +9500,8 @@
"95d3031db2": "Keeps this computer and display awake while agents are working. Lid-close behavior follows this device's power settings.",
"a42f6fbdd8": "Keeps this computer and display awake while agents are working. Orca also asks this device to stay awake when the lid is closed, subject to its power policy.",
"modeTitle": "Keep computer awake",
"modeDescriptionWindows": "Choose On, Auto while agents are working, or Off. Lid-close behavior follows this device's power settings.",
"modeDescriptionDefault": "Choose On, Auto while agents are working, or Off. Orca also asks this device to stay awake when the lid is closed, subject to its power policy."
"modeDescriptionWindows": "Choose On, Agent, or Off. Agent mode stays awake while agents are working; lid-close behavior follows this device's power settings.",
"modeDescriptionDefault": "Choose On, Agent, or Off. Agent mode stays awake while agents are working. Orca also asks this device to stay awake when the lid is closed, subject to its power policy."
},
"agent-status-hooks-copy": {
"7707c15abb": "Agent status hooks",
@@ -10563,7 +10563,7 @@
},
"AgentAwakeSetting": {
"on": "On",
"auto": "Auto",
"auto": "Agent",
"off": "Off"
}
},