From b5e486ffd2176a9c43057010e69f3f6811db84f8 Mon Sep 17 00:00:00 2001 From: suraj-markup Date: Tue, 3 Mar 2026 04:50:54 +0530 Subject: [PATCH] fix: robot button goes to Orchestrator page with Commands in header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert 🤖 to navigate to Orchestrator overview (zones, stats, orchestrator status card). The "Commands" header button on that page opens the CLI commands reference. Tapping the orchestrator card navigates to its session detail. Co-Authored-By: Claude Opus 4.6 --- packages/mobile/src/screens/HomeScreen.tsx | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/packages/mobile/src/screens/HomeScreen.tsx b/packages/mobile/src/screens/HomeScreen.tsx index 730c5e888..d1015d14f 100644 --- a/packages/mobile/src/screens/HomeScreen.tsx +++ b/packages/mobile/src/screens/HomeScreen.tsx @@ -32,13 +32,13 @@ function sortSessions(sessions: DashboardSession[]): DashboardSession[] { } export default function HomeScreen({ navigation }: Props) { - const { sessions, stats, orchestratorId, loading, error, refresh } = useSessions(); + const { sessions, stats, loading, error, refresh } = useSessions(); useSessionNotifications(sessions); React.useLayoutEffect(() => { navigation.setOptions({ headerRight: () => ( - + navigation.navigate("SpawnSession")} style={{ flexDirection: "row", alignItems: "center", gap: 2 }} @@ -46,18 +46,7 @@ export default function HomeScreen({ navigation }: Props) { + Session - navigation.navigate("Commands")}> - {"\uD83D\uDCCB"} - - { - if (orchestratorId) { - navigation.navigate("SessionDetail", { sessionId: orchestratorId }); - } else { - navigation.navigate("Orchestrator"); - } - }} - > + navigation.navigate("Orchestrator")}> {"\uD83E\uDD16"} ), }); - }, [navigation, orchestratorId]); + }, [navigation]); const sorted = sortSessions(sessions);