From 33456d03dc287c83093b2ca667f3e6b98ded5f68 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 9 Nov 2026 02:47:19 -0800 Subject: [PATCH] fix(remote): share the agent logout helper with the host menu after restacking on plain logout Co-Authored-By: Claude --- .../rows/HostAgentSignOutMenuItems.tsx | 5 ++++- src/renderer/src/i18n/locales/en.json | 20 ++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/sidebar/worktree-list/rows/HostAgentSignOutMenuItems.tsx b/src/renderer/src/components/sidebar/worktree-list/rows/HostAgentSignOutMenuItems.tsx index f160df8df2e..7eced0d4ae5 100644 --- a/src/renderer/src/components/sidebar/worktree-list/rows/HostAgentSignOutMenuItems.tsx +++ b/src/renderer/src/components/sidebar/worktree-list/rows/HostAgentSignOutMenuItems.tsx @@ -22,7 +22,10 @@ import { subscribeHostAgentSignInReports } from '@/runtime/provider-accounts/sign-in/host-agent-sign-in-status-client' import { signOutAgentOnHost } from '@/lib/agent-sign-in/host-agent-sign-out' -import { HOST_AGENT_SIGN_IN_AGENT_NAME } from '../../../../../../shared/host-agent-sign-in-status' +import { + HOST_AGENT_SIGN_IN_AGENT_NAME, + type HostAgentSignInAgent +} from '../../../../../../shared/host-agent-sign-in-status' const AGENT_NAME = HOST_AGENT_SIGN_IN_AGENT_NAME diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index d6dfcdcd8c8..39f9c736570 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -24575,6 +24575,24 @@ "signOutOf": "Sign out of {{agent}}…", "signOutTitle": "Sign out of {{agent}} on {{host}}?", "signOutBody": "Runs {{agent}}’s own sign-out on {{host}}. The next {{agent}} you start there asks you to sign in. Agents already running there aren’t stopped, and saved accounts stay listed.", - "signOut": "Sign out" + "signOut": "Sign out", + "otherAccount": "Not your usual account.", + "otherAccountDetail": "This computer uses {{email}} for {{agent}}.", + "switchAccount": "Switch account", + "switchAccountDetail": "Switch accounts in your browser, then start {{agent}} there again to sign in.", + "otherAccountToast": "{{agent}} on {{host}} is signed in as {{email}}" + }, + "vmBuildAgentSignIn": { + "optional": "optional", + "idleDetail": "Or sign in when you first start one.", + "signInBoth": "Sign in {{first}} + {{second}}", + "signInOne": "Sign in {{agent}}", + "next": "{{agent}} next", + "waiting": "{{agent}}: finish in your browser", + "signed": "{{agent}}: signed in", + "continueBelow": "{{agent}}: continue below", + "starting": "{{agent}}: starting sign-in…", + "title": "Agent sign-in", + "otherAccount": "{{agent}} signed in as {{email}}." } }