Fix web typecheck regressions after rebase

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex authored and Julius Marminge committed 2026-02-18 23:54:48 -08:00
1 parent 1a315235b7
commit 978c810139
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -6,6 +6,7 @@ import {
WorkerPoolContextProvider,
} from "@pierre/diffs/react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useParams } from "@tanstack/react-router";
import { Columns2Icon, Rows3Icon } from "lucide-react";
import { type ReactNode, useEffect, useMemo, useRef, useState } from "react";
import { checkpointDiffQueryOptions, providerQueryKeys } from "~/lib/providerReactQuery";
@@ -105,7 +106,10 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
const queryClient = useQueryClient();
const [diffRenderMode, setDiffRenderMode] = useState<DiffRenderMode>("stacked");
const patchViewportRef = useRef<HTMLDivElement>(null);
const activeThread = state.threads.find((thread) => thread.id === state.activeThreadId);
const params = useParams({ strict: false });
const routeThreadId = typeof params.threadId === "string" ? params.threadId : null;
const activeThreadId = state.diffThreadId ?? routeThreadId;
const activeThread = state.threads.find((thread) => thread.id === activeThreadId);
const activeThreadRuntimeId =
activeThread?.codexThreadId ?? activeThread?.session?.threadId ?? null;
const activeSessionId = activeThread?.session?.sessionId ?? null;
+1
View File
@@ -33,6 +33,7 @@ export function createThread(projectId: string, options: CreateThreadOptions = {
session: null,
messages: [],
events: [],
turnDiffSummaries: [],
error: null,
createdAt,
branch: options.branch ?? null,