Complete orchestration V2 frontend cutover

- 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
This commit is contained in:
Julius Marminge authored and maria-rcks committed 2026-08-03 11:45:05 -04:00
1 parent 75e126993b
commit 3991a00629
111 files changed
+6306 -9244

No files matched your search

+5 -5
View File
@@ -1,5 +1,5 @@
import { scopeThreadRef } from "@t3tools/client-runtime/environment";
import { EnvironmentId, ThreadId, TurnId } from "@t3tools/contracts";
import { EnvironmentId, ThreadId, RunId } from "@t3tools/contracts";
import { beforeEach, describe, expect, it } from "vite-plus/test";
import { selectThreadDiffPanelSelection, useDiffPanelStore } from "./diffPanelStore";
@@ -31,7 +31,7 @@ describe("diffPanelStore", () => {
it("clears incompatible selection fields when changing scopes", () => {
const store = useDiffPanelStore.getState();
store.selectTurn(THREAD_REF, TurnId.make("turn-1"), "src/app.ts");
store.selectTurn(THREAD_REF, RunId.make("turn-1"), "src/app.ts");
store.selectGitScope(THREAD_REF, "unstaged");
expect(
@@ -45,7 +45,7 @@ describe("diffPanelStore", () => {
});
it("increments the reveal request when opening the same turn file again", () => {
const turnId = TurnId.make("turn-1");
const turnId = RunId.make("turn-1");
useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");
useDiffPanelStore.getState().selectTurn(THREAD_REF, turnId, "src/app.ts");
@@ -65,8 +65,8 @@ describe("diffPanelStore", () => {
});
it("reconciles a missing turn selection to the latest available turn", () => {
const missingTurnId = TurnId.make("turn-missing");
const latestTurnId = TurnId.make("turn-latest");
const missingTurnId = RunId.make("turn-missing");
const latestTurnId = RunId.make("turn-latest");
useDiffPanelStore.getState().selectTurn(THREAD_REF, missingTurnId, "src/app.ts");
useDiffPanelStore.getState().reconcileTurnSelection(THREAD_REF, [latestTurnId]);