diff --git a/mobile/src/components/AgentLaunchNotice.tsx b/mobile/src/components/AgentLaunchNotice.tsx index 8a3e4826614..1047bd3c9b5 100644 --- a/mobile/src/components/AgentLaunchNotice.tsx +++ b/mobile/src/components/AgentLaunchNotice.tsx @@ -1,7 +1,10 @@ import { useState } from 'react' import { Pressable, StyleSheet, Text, View, type StyleProp, type TextStyle } from 'react-native' import { useClipboardWriter } from '../platform/clipboard' -import { AGENT_LAUNCH_UPDATE_REQUIRED_MESSAGE } from '../session/mobile-existing-agent-launch' +import { + AGENT_LAUNCH_STATUS_UNREADABLE_MESSAGE, + AGENT_LAUNCH_UPDATE_REQUIRED_MESSAGE +} from '../session/mobile-existing-agent-launch' import type { MobileAgentLaunchAvailability } from '../session/mobile-agent-launch-availability' import { colors, spacing, typography } from '../theme/mobile-theme' @@ -17,7 +20,12 @@ type Props = { export function AgentLaunchNotice({ availability, error, undeliveredPrompt, errorStyle }: Props) { const clipboard = useClipboardWriter() const [copyState, setCopyState] = useState<{ prompt: string; label: string } | null>(null) - const message = availability === 'update-required' ? AGENT_LAUNCH_UPDATE_REQUIRED_MESSAGE : error + const message = + availability === 'update-required' + ? AGENT_LAUNCH_UPDATE_REQUIRED_MESSAGE + : availability === 'unverified' + ? AGENT_LAUNCH_STATUS_UNREADABLE_MESSAGE + : error if (!message) { return null } diff --git a/mobile/src/components/MobileDiffReviewDrawers.tsx b/mobile/src/components/MobileDiffReviewDrawers.tsx index 944eec88bf7..93265c507b7 100644 --- a/mobile/src/components/MobileDiffReviewDrawers.tsx +++ b/mobile/src/components/MobileDiffReviewDrawers.tsx @@ -85,7 +85,9 @@ function useSendActions(controller: ReturnType void controller.createTerminalAndSend(comments) }, diff --git a/mobile/src/session/mobile-existing-agent-launch.ts b/mobile/src/session/mobile-existing-agent-launch.ts index 7aab999b2f4..02f1035aaeb 100644 --- a/mobile/src/session/mobile-existing-agent-launch.ts +++ b/mobile/src/session/mobile-existing-agent-launch.ts @@ -25,6 +25,10 @@ export const PROMPTED_AGENT_LAUNCH_TIMEOUT_MS = 90_000 export const AGENT_LAUNCH_UPDATE_REQUIRED_MESSAGE = 'Update Orca on your computer to start an agent from your phone.' +// Same words the mobile web shell uses for a status read that failed; leaving the host re-reads it. +export const AGENT_LAUNCH_STATUS_UNREADABLE_MESSAGE = + "Could not read this host's status. Go back and reopen it." + export const AGENT_LAUNCH_UNCONFIRMED_MESSAGE = "Couldn't confirm the agent started. Check the workspace before trying again."