@devries-cameron20 / t3code-1 / commits / 978c810139
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Fix web typecheck regressions after rebase

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Feb 18, 2026 at 22:40 UTC 978c8101395ee76cd507241ecec89f467adc4b04
2 files changed +6 -1
apps/web/src/components/DiffPanel.tsx
+5 -1
@@ -6,6 +6,7 @@ import {
6 WorkerPoolContextProvider,
7 } from "@pierre/diffs/react";
8 import { useQuery, useQueryClient } from "@tanstack/react-query";
9 +import { useParams } from "@tanstack/react-router";
10 import { Columns2Icon, Rows3Icon } from "lucide-react";
11 import { type ReactNode, useEffect, useMemo, useRef, useState } from "react";
12 import { checkpointDiffQueryOptions, providerQueryKeys } from "~/lib/providerReactQuery";
@@ -105,7 +106,10 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
106 const queryClient = useQueryClient();
107 const [diffRenderMode, setDiffRenderMode] = useState<DiffRenderMode>("stacked");
108 const patchViewportRef = useRef<HTMLDivElement>(null);
108 - const activeThread = state.threads.find((thread) => thread.id === state.activeThreadId);
109 + const params = useParams({ strict: false });
110 + const routeThreadId = typeof params.threadId === "string" ? params.threadId : null;
111 + const activeThreadId = state.diffThreadId ?? routeThreadId;
112 + const activeThread = state.threads.find((thread) => thread.id === activeThreadId);
113 const activeThreadRuntimeId =
114 activeThread?.codexThreadId ?? activeThread?.session?.threadId ?? null;
115 const activeSessionId = activeThread?.session?.sessionId ?? null;
apps/web/src/threadFactory.ts
+1
@@ -33,6 +33,7 @@ export function createThread(projectId: string, options: CreateThreadOptions = {
33 session: null,
34 messages: [],
35 events: [],
36 + turnDiffSummaries: [],
37 error: null,
38 createdAt,
39 branch: options.branch ?? null,