authorgravatar for akole779@mtroyal.caAKolenda <akole779@mtroyal.ca> 2026-10-05 07:27:23-06:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-05 08:27:23-05:00
log1604ccc9d79f5270fb8e14d60664184bf142c4cb
tree3a760280349a489bf1803d6f2475aa51735406fe
parent1a3f7ad5085606463a602bd756ca9c04d106fffe
signature Signed by PGP key B5690EEEBB952194

fix(mobile): back from a finished subagent in the feed returns to its parent (#15844)


1 files changed, 9 insertions(+), 5 deletions(-)

apps/mobile/src/features/threads/thread-work-log.tsx+9-5
......@@ -18,7 +18,7 @@ import { type AppSymbolName, SymbolView } from "../../components/AppSymbol";
1818import { MaskedView } from "@expo/ui/community/masked-view";
1919import type { LegendListRef } from "@legendapp/list/react-native";
2020import { AnimatedLegendList } from "@legendapp/list/reanimated";
21import { useIsFocused, useNavigation } from "@react-navigation/native";
21import { StackActions, useIsFocused, useNavigation } from "@react-navigation/native";
2222import {
2323 memo,
2424 useCallback,
......@@ -1004,10 +1004,14 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow(
10041004 accessibilityState={canExpand ? { expanded } : undefined}
10051005 onPress={() => {
10061006 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 );
10111015 return;
10121016 }
10131017 if (canExpand) {