The best way to control Claude Code, Codex and more from any computer or phone
Stop persisting checkpointDiffLoaded in turn diff summaries
- Remove `checkpointDiffLoaded` from hydration and persistence paths - Update persistence schema tests to assert loaded flags are cleared
Julius Marminge committed
Feb 18, 2026 at 15:32 UTC
ba1a2dbcf7230034663b99be24204a8cb1b2d8f3
2 files changed
+1
-6
apps/web/src/persistenceSchema.test.ts
+1
-4
@@ -264,7 +264,7 @@ describe("hydratePersistedState", () => {
264
expect(hydrated?.threads[0]?.activeTerminalGroupId).toBe(`group-${DEFAULT_THREAD_TERMINAL_ID}`);
265
});
266
267
- it("hydrates persisted turn diff summaries", () => {
267
+ it("hydrates persisted turn diff summaries and clears persisted loaded flags", () => {
268
const payload = JSON.stringify({
269
version: 7,
270
runtimeMode: "full-access",
@@ -313,7 +313,6 @@ describe("hydratePersistedState", () => {
313
turnId: "turn-1",
314
completedAt: "2026-02-08T10:05:00.000Z",
315
checkpointTurnCount: 1,
316
- checkpointDiffLoaded: true,
316
files: [
317
{
318
path: "src/app.ts",
@@ -417,7 +416,6 @@ describe("toPersistedState", () => {
416
completedAt: "2026-02-08T10:05:00.000Z",
417
status: "completed",
418
checkpointTurnCount: 1,
420
- checkpointDiffLoaded: true,
419
files: [
420
{
421
path: "src/app.ts",
@@ -493,7 +491,6 @@ describe("toPersistedState", () => {
491
completedAt: "2026-02-08T10:05:00.000Z",
492
status: "completed",
493
checkpointTurnCount: 1,
496
- checkpointDiffLoaded: true,
494
files: [
495
{
496
path: "src/app.ts",
apps/web/src/persistenceSchema.ts
-2
@@ -305,7 +305,6 @@ function hydrateThread(
305
...(typeof summary.checkpointTurnCount === "number"
306
? { checkpointTurnCount: summary.checkpointTurnCount }
307
: {}),
308
- ...(summary.checkpointDiffLoaded ? { checkpointDiffLoaded: true } : {}),
308
})),
309
};
310
}
@@ -401,7 +400,6 @@ export function toPersistedState(
400
...(typeof summary.checkpointTurnCount === "number"
401
? { checkpointTurnCount: summary.checkpointTurnCount }
402
: {}),
404
- ...(summary.checkpointDiffLoaded ? { checkpointDiffLoaded: true } : {}),
403
})),
404
})),
405
activeThreadId: state.activeThreadId,