diff --git a/src/renderer/src/components/orca-profiles/OrcaProfileSwitcher.tsx b/src/renderer/src/components/orca-profiles/OrcaProfileSwitcher.tsx
index 9c18a0f5704..f8a98da9d0a 100644
--- a/src/renderer/src/components/orca-profiles/OrcaProfileSwitcher.tsx
+++ b/src/renderer/src/components/orca-profiles/OrcaProfileSwitcher.tsx
@@ -86,6 +86,15 @@ export function OrcaProfileSwitcher({
}
}, [fetchProfiles, loading, profiles.length])
+ // Why: the Orca Cloud account UX isn't ready for production users yet, so the
+ // trigger stays hidden in packaged builds. Dev builds still show it when
+ // cloud auth is configured, and a dev-only Settings > Dev Tools > Orca Cloud
+ // section mirrors it. import.meta.env.PROD is true only in packaged builds
+ // (false in dev and under vitest), so tests still exercise the render path.
+ if (import.meta.env.PROD) {
+ return null
+ }
+
// Why: paired web/mobile clients only see the desktop stub's fabricated
// profile list; showing a switcher there would misreport the active profile
// and none of its actions can work remotely.
diff --git a/src/renderer/src/components/settings/DevToolsPane.tsx b/src/renderer/src/components/settings/DevToolsPane.tsx
index f22b5823e00..e1779e9aead 100644
--- a/src/renderer/src/components/settings/DevToolsPane.tsx
+++ b/src/renderer/src/components/settings/DevToolsPane.tsx
@@ -6,6 +6,7 @@ import { SettingsSubsectionHeader } from './SettingsFormControls'
import { showDeleteWorktreeFailureToast } from '../sidebar/delete-worktree-failure-toast'
import { showLocalBaseRefUpdateSuggestionToast } from '../sidebar/local-base-ref-suggestion-toast'
import { translate } from '@/i18n/i18n'
+import { useAppStore } from '@/store'
import type { AppState } from '@/store/types'
const LONG_WORKSPACE_NAME = 'feature/dev-toast-layout-with-a-long-workspace-name'
@@ -124,6 +125,85 @@ function showDeleteFailureToast(): void {
})
}
+// Dev-only preview of the first-party Orca Cloud sign-in. The sidebar/titlebar
+// account switcher is hidden in packaged builds while the feature is in
+// progress; this surfaces it (and its status) in dev when the env vars are set.
+function OrcaCloudDevSubsection(): React.JSX.Element {
+ const authStatus = useAppStore((s) => s.orcaProfileAuthStatus)
+ const connecting = useAppStore((s) => s.orcaProfileConnecting)
+ const connect = useAppStore((s) => s.connectCurrentOrcaProfile)
+ const signOut = useAppStore((s) => s.signOutCurrentOrcaProfile)
+ const refresh = useAppStore((s) => s.fetchOrcaProfileAuthStatus)
+ const configured = authStatus?.configured === true
+ const connected = authStatus?.state === 'connected'
+
+ return (
+
+
+ {authStatus?.setupMessage ??
+ translate(
+ 'auto.components.settings.DevToolsPane.orcaCloudNotConfigured',
+ 'Set ORCA_CLOUD_API_URL and ORCA_CLOUD_CLIENT_ID to preview Orca Cloud sign-in in this dev build.'
+ )}
+