From f07b6ac8e6d17efde13fe3135bb52159962b5bdc Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 18 Feb 2026 01:18:13 -0800 Subject: [PATCH] Fix react-pacer import and initialize diff state in test - update `useDebouncedValue` import to `@tanstack/react-pacer` - add missing `diffThreadId`, `diffTurnId`, and `diffFilePath` in thread continuity test state --- apps/web/src/components/ChatView.tsx | 2 +- apps/web/src/store.test.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 86abebcc3124d4cb907e515faf92961d82700de1..a8efd1e7fea448f4e4b967ce631648348dfaa88c 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -28,7 +28,7 @@ import { useState, } from "react"; import { useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query"; -import { useDebouncedValue } from "@tanstack/react-pacer/debouncer"; +import { useDebouncedValue } from "@tanstack/react-pacer"; import { gitBranchesQueryOptions, gitCreateWorktreeMutationOptions } from "~/lib/gitReactQuery"; import { projectSearchEntriesQueryOptions } from "~/lib/projectReactQuery"; import { checkpointDiffQueryOptions } from "~/lib/providerReactQuery"; diff --git a/apps/web/src/store.test.ts b/apps/web/src/store.test.ts index fbedc79a0997249cd2881ca5f26e158f3365e13f..30a03daf307b710599943a6367a5a8ba23f59444 100644 --- a/apps/web/src/store.test.ts +++ b/apps/web/src/store.test.ts @@ -655,6 +655,9 @@ describe("store reducer thread continuity", () => { activeThreadId: "thread-a", runtimeMode: "full-access", diffOpen: false, + diffThreadId: null, + diffTurnId: null, + diffFilePath: null, }; const next = reducer(state, { -- 2.54.0