| ... | @@ -753,11 +753,7 @@ export default function ChatView({ threadId }: ChatViewProps) { | ... | @@ -753,11 +753,7 @@ export default function ChatView({ threadId }: ChatViewProps) { |
| 753 | composerDraft.interactionMode ?? activeThread?.interactionMode ?? DEFAULT_INTERACTION_MODE; | 753 | composerDraft.interactionMode ?? activeThread?.interactionMode ?? DEFAULT_INTERACTION_MODE; |
| 754 | const isServerThread = serverThread !== undefined; | 754 | const isServerThread = serverThread !== undefined; |
| 755 | const isLocalDraftThread = !isServerThread && localDraftThread !== undefined; | 755 | const isLocalDraftThread = !isServerThread && localDraftThread !== undefined; |
| 756 | const diffSearch = useMemo( | 756 | const diffOpen = rawSearch.diff === "1"; |
| 757 | () => parseDiffRouteSearch(rawSearch as Record<string, unknown>), | | |
| 758 | [rawSearch], | | |
| 759 | ); | | |
| 760 | const diffOpen = diffSearch.diff === "1"; | | |
| 761 | const activeThreadId = activeThread?.id ?? null; | 757 | const activeThreadId = activeThread?.id ?? null; |
| 762 | const activeLatestTurn = activeThread?.latestTurn ?? null; | 758 | const activeLatestTurn = activeThread?.latestTurn ?? null; |
| 763 | const latestTurnSettled = isLatestTurnSettled(activeLatestTurn, activeThread?.session ?? null); | 759 | const latestTurnSettled = isLatestTurnSettled(activeLatestTurn, activeThread?.session ?? null); |