Remove manual connect prompts

This commit is contained in:
Mohamed Boudra
2025-11-26 19:47:55 +01:00
parent 0db0e1ad23
commit e98952bf4c
4 changed files with 13 additions and 6 deletions

View File

@@ -105,8 +105,8 @@ export default function LegacyAgentRedirectScreen() {
<View style={styles.centerState}>
<Text style={styles.title}>Agent not found</Text>
<Text style={styles.subtitle}>
We could not find {agentId} on any connected host. Make sure the host is online or
reopen the agent from the Home screen after it reconnects.
We could not find {agentId} on any host right now. Hosts reconnect automaticallyopen it
again from the Agents screen after it comes back online.
</Text>
<Pressable style={styles.primaryButton} onPress={handleGoHome}>
<Text style={styles.primaryButtonText}>Go Home</Text>

View File

@@ -864,7 +864,7 @@ function DaemonCard({
setIsRestarting(false);
Alert.alert(
"Error",
"Failed to send restart request. Please ensure you are connected to the server."
"Failed to send the restart request. Paseo reconnects automatically—try again once the host shows as online."
);
return;
}

View File

@@ -57,7 +57,7 @@ export function useDaemonSession(serverId?: string | null, options?: UseDaemonSe
const label = connection?.daemon.label ?? serverId;
const status = connection?.status ?? "unknown";
const lastError = connection?.lastError ? `\n${connection.lastError}` : "";
const message = `${label} isn't connected yet (${status}). Switch to it and wait for Paseo to reconnect automatically.${lastError}`;
const message = `${label} isn't connected yet (${status}). Paseo reconnects automatically and will enable actions once it's back.${lastError}`;
if (!suppressUnavailableAlert && !alertedDaemonsRef.current.has(serverId)) {
alertedDaemonsRef.current.add(serverId);