- {t('agentApiKeys.import.title', 'Keys found on {{place}}', { place })}
+ {t('agentApiKeys.import.title', 'Keys found on this computer')}
{signedIn
@@ -123,9 +119,7 @@ export function AgentApiKeysImportPanel({
) : scan.kind === 'failed' ? (
@@ -190,7 +184,7 @@ export function AgentApiKeysImportPanel({
{t(
'agentApiKeys.import.signIn',
- '{{agent}} is signed in with {{provider}}. Sign in once in Settings › Agent accounts.',
+ '{{agent}} is signed in with {{provider}}. Sign in once in Settings → Agent accounts.',
{
agent: getAgentLabel(signIn.agent),
provider: signInProviderLabel(signIn)
diff --git a/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.fixture.tsx b/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.fixture.tsx
index 93df67962af..17c2045b51a 100644
--- a/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.fixture.tsx
+++ b/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.fixture.tsx
@@ -234,15 +234,23 @@ export const importScanning = defineFixture({
)
})
-/** An edit that didn't reach the account: the account still holds the earlier value. */
+const STALE: AgentApiKeysState = {
+ ...SIGNED_IN,
+ cloud: { signedIn: true, synced: [], managed: ['synced'] }
+}
+
+/** The account holds an older copy of a key this computer saved there. */
export const cloudStale = defineFixture({
+ width: 720,
+ render: () =>
+})
+
+/** An edit saved here, but the account write failed: one line, with retry. */
+export const cloudStaleFailed = defineFixture({
width: 720,
render: () => (
)
diff --git a/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.tsx b/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.tsx
index 32c8ea78e80..e8b1650992f 100644
--- a/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.tsx
+++ b/src/renderer/src/components/settings/agent-api-keys/AgentApiKeysPane.tsx
@@ -43,7 +43,7 @@ import {
type AgentApiKeysNoticeState
} from './AgentApiKeyCloudLine'
import { AgentApiKeysImportPanel, useAgentApiKeysImport } from './AgentApiKeysImportPanel'
-import { isMacPlatform, type ImportScanState } from './agent-api-keys-import'
+import type { ImportScanState } from './agent-api-keys-import'
type Editing = { agent: TuiAgent; keyId: string | null } | null
@@ -191,7 +191,7 @@ export function AgentApiKeysPane({
const error = await model.remove(apiKey.id, fromAccount)
setFailure(error)
if (!error && asked && !fromAccount) {
- setNotice({ kind: 'kept', envName: apiKey.envName })
+ setNotice({ kind: 'kept' })
}
}
const [extraAgents, setExtraAgents] = useState(
@@ -225,8 +225,8 @@ export function AgentApiKeysPane({
{t(
- 'auto.components.settings.agentApiKeys.promise',
- 'Keys are sealed in your OS keychain. When an agent starts, here, on an SSH host or on a paired machine, Orca passes it the key for that run only and never writes it to that machine.'
+ 'agentApiKeys.promiseAccount',
+ 'Keys are sealed on this computer. When you’re signed in to Orca, they’re also saved in your Orca account for cloud workspaces. On SSH hosts and paired machines, Orca passes a key for that run only and never writes it there.'
)}
@@ -350,9 +350,7 @@ export function AgentApiKeysPane({
{model.scanThisComputer && !importer.scan ? (