authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-18 01:18:13-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-18 21:59:17-08:00
logf07b6ac8e6d17efde13fe3135bb52159962b5bdc
tree6fcf78a7b86bc21be67da595458f48f97059502b
parent3afbf93d5e54fec6674c62a5521f78c0ec2cf846

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

2 files changed, 4 insertions(+), 1 deletions(-)

apps/web/src/components/ChatView.tsx+1-1
......@@ -28,7 +28,7 @@ import {
2828 useState,
2929} from "react";
3030import { useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
31import { useDebouncedValue } from "@tanstack/react-pacer/debouncer";
31import { useDebouncedValue } from "@tanstack/react-pacer";
3232import { gitBranchesQueryOptions, gitCreateWorktreeMutationOptions } from "~/lib/gitReactQuery";
3333import { projectSearchEntriesQueryOptions } from "~/lib/projectReactQuery";
3434import { checkpointDiffQueryOptions } from "~/lib/providerReactQuery";
apps/web/src/store.test.ts+3
......@@ -655,6 +655,9 @@ describe("store reducer thread continuity", () => {
655655 activeThreadId: "thread-a",
656656 runtimeMode: "full-access",
657657 diffOpen: false,
658 diffThreadId: null,
659 diffTurnId: null,
660 diffFilePath: null,
658661 };
659662
660663 const next = reducer(state, {