The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 19:15 UTC
fix(mobile): back from a finished subagent in the feed returns to its parent (#15844)
AKolenda committed
Oct 5, 2026 at 07:27 UTC
1604ccc9d79f5270fb8e14d60664184bf142c4cb
1 file changed
+9
-5
apps/mobile/src/features/threads/thread-work-log.tsx
+9
-5
@@ -18,7 +18,7 @@ import { type AppSymbolName, SymbolView } from "../../components/AppSymbol";
18
import { MaskedView } from "@expo/ui/community/masked-view";
19
import type { LegendListRef } from "@legendapp/list/react-native";
20
import { AnimatedLegendList } from "@legendapp/list/reanimated";
21
-import { useIsFocused, useNavigation } from "@react-navigation/native";
21
+import { StackActions, useIsFocused, useNavigation } from "@react-navigation/native";
22
import {
23
memo,
24
useCallback,
@@ -1004,10 +1004,14 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow(
1004
accessibilityState={canExpand ? { expanded } : undefined}
1005
onPress={() => {
1006
if (notifiedSubagentThreadId !== undefined) {
1007
- navigation.navigate("Thread", {
1008
- environmentId: String(props.environmentId),
1009
- threadId: String(notifiedSubagentThreadId),
1010
- });
1007
+ // Push, not navigate: navigate reuses this Thread route, so back
1008
+ // would skip the parent thread and land on Home (matches #15068).
1009
+ navigation.dispatch(
1010
+ StackActions.push("Thread", {
1011
+ environmentId: String(props.environmentId),
1012
+ threadId: String(notifiedSubagentThreadId),
1013
+ }),
1014
+ );
1015
return;
1016
}
1017
if (canExpand) {