Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(chat): show provider thinking traces #11784

Mergedmaria-rcksmerged 21 commits intomain fromrefs/pull/11784/headmerged by maria-rcks View on GitHub

Showing 32 changed files with 86 additions and 2 deletions (loading 30).

x
0 of 32 viewed, 32 left
83 additions and 1 deletionapps/mobile/src/connection/environment-cache-store.test.tsModified
View file
@@ -1,4 +1,12 @@
-import { EnvironmentId, type VcsListRefsResult } from "@t3tools/contracts";
+import {
+ EnvironmentId,
+ ThreadId,
+ ProjectId,
+ ProviderInstanceId,
+ MessageId,
+ type OrchestrationThreadDetailSnapshot,
+ type VcsListRefsResult,
+} from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as Effect from "effect/Effect";
import * as Option from "effect/Option";
@@ -69,6 +77,80 @@
​
describe("mobile SQLite environment cache store", () => {
+ it.effect(
+ "invalidates pre-thinking thread caches while preserving current snapshots and other caches",
+ () =>
+ Effect.gen(function* () {
+ const memory = makeDatabase();
+ const store = yield* make().pipe(Effect.provideService(MobileDatabase, memory.database));
+ const now = "2026-09-04T00:00:00.000Z";
+ const snapshot: OrchestrationThreadDetailSnapshot = {
+ snapshotSequence: 2,
+ thread: {
+ id: ThreadId.make("thread-1"),
+ projectId: ProjectId.make("project-1"),