- Migrate web and mobile state, commands, and persistence to V2 projections - Render conversations from authoritative visible turn items - Harden runtime policy, launch handling, attachments, and cache invalidation
Showing the changes to apps/web/src/diffPanelStore.test.ts (1 of 111 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import { scopeThreadRef } from "@t3tools/client-runtime/environment"; |
| 2 | −import { EnvironmentId, ThreadId, TurnId } from "@t3tools/contracts"; | |
| 2 | +import { EnvironmentId, ThreadId, RunId } from "@t3tools/contracts"; | |
| 3 | 3 | import { beforeEach, describe, expect, it } from "vite-plus/test"; |
| 4 | 4 | |
| 5 | 5 | import { selectThreadDiffPanelSelection, useDiffPanelStore } from "./diffPanelStore"; |
| @@ -31,7 +31,7 @@ describe("diffPanelStore", () => { · 25 unmodified lines | ||
| 31 | 31 | |
| 32 | 32 | it("clears incompatible selection fields when changing scopes", () => { |
| 33 | 33 | const store = useDiffPanelStore.getState(); |
| 34 | − store.selectTurn(THREAD_REF, TurnId.make("turn-1"), "src/app.ts"); | |
| 34 | + store.selectTurn(THREAD_REF, RunId.make("turn-1"), "src/app.ts"); | |
| 35 | 35 | store.selectGitScope(THREAD_REF, "unstaged"); |
| 36 | 36 | |
| 37 | 37 | expect( |
| @@ -45,7 +45,7 @@ describe("diffPanelStore", () => { · 7 unmodified lines | ||
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | 47 | it("increments the reveal request when opening the same turn file again", () => { |
| 48 | − const turnId = TurnId.make("turn-1"); | |
| 48 | + const turnId = RunId.make("turn-1"); | |
| 49 | 49 | useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts"); |
| 50 | 50 | useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts"); |
| 51 | 51 | |
| @@ -65,8 +65,8 @@ describe("diffPanelStore", () => { · 13 unmodified lines | ||
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | 67 | it("reconciles a missing turn selection to the latest available turn", () => { |
| 68 | − const missingTurnId = TurnId.make("turn-missing"); | |
| 69 | − const latestTurnId = TurnId.make("turn-latest"); | |
| 68 | + const missingTurnId = RunId.make("turn-missing"); | |
| 69 | + const latestTurnId = RunId.make("turn-latest"); | |
| 70 | 70 | useDiffPanelStore.getState().selectTurn(THREAD_REF, missingTurnId, "src/app.ts"); |
| 71 | 71 | useDiffPanelStore.getState().reconcileTurnSelection(THREAD_REF, [latestTurnId]); |
| 72 | 72 | |