fix: respect cloud computer use setting

This commit is contained in:
Simos Mikelatos
2026-06-19 15:02:07 +00:00
parent 5ef40be2d3
commit bb323fc566
3 changed files with 53 additions and 45 deletions

View File

@@ -130,7 +130,21 @@ export default function ComputerUseSettingsTab() {
)}
</div>
{isCloud ? (
<SettingsRow
label="Enable Computer Use"
description={isCloud
? 'Registers Computer Use MCP servers for supported agents and allows cloud agents to request guarded access to a linked desktop.'
: 'Registers Computer Use for supported agents and allows CloudCLI to create guarded desktop control sessions on this machine.'}
>
<SettingsToggle
checked={settings.enabled}
onChange={(value) => void updateSettings({ enabled: value })}
ariaLabel="Enable Computer Use"
disabled={isLoading || isSaving}
/>
</SettingsRow>
{isCloud && (
<SettingsRow
label="Cloud desktop access"
description={status?.desktopAgentConnected
@@ -160,18 +174,6 @@ export default function ComputerUseSettingsTab() {
</div>
</div>
</SettingsRow>
) : (
<SettingsRow
label="Enable Computer Use"
description="Registers Computer Use for supported agents and allows CloudCLI to create guarded desktop control sessions on this machine."
>
<SettingsToggle
checked={settings.enabled}
onChange={(value) => void updateSettings({ enabled: value })}
ariaLabel="Enable Computer Use"
disabled={isLoading || isSaving}
/>
</SettingsRow>
)}
{(needsRuntime || isCloud || error) && (