| ... | ... | @@ -18,7 +18,7 @@ import { type AppSymbolName, SymbolView } from "../../components/AppSymbol"; |
| 18 | 18 | import { MaskedView } from "@expo/ui/community/masked-view"; |
| 19 | 19 | import type { LegendListRef } from "@legendapp/list/react-native"; |
| 20 | 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 | 22 | import { |
| 23 | 23 | memo, |
| 24 | 24 | useCallback, |
| ... | ... | @@ -1004,10 +1004,14 @@ const ThreadWorkLogRow = memo(function ThreadWorkLogRow( |
| 1004 | 1004 | accessibilityState={canExpand ? { expanded } : undefined} |
| 1005 | 1005 | onPress={() => { |
| 1006 | 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 | ); |
| 1011 | 1015 | return; |
| 1012 | 1016 | } |
| 1013 | 1017 | if (canExpand) { |