@devries-cameron20 / t3code Mirror · read-only / commits / 1c3fa67374
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 07:30 UTC

[codex] migrate Effect.fn in apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts (#1622)

Co-authored-by: codex <codex@users.noreply.github.com>

Julius Marminge committed Apr 1, 2026 at 08:35 UTC 1c3fa673749dd569c904cba45e492e1912e07332
1 file changed +4 -3
apps/server/src/checkpointing/Layers/CheckpointDiffQuery.ts
+4 -3
@@ -21,8 +21,8 @@ const make = Effect.gen(function* () {
21 const projectionSnapshotQuery = yield* ProjectionSnapshotQuery;
22 const checkpointStore = yield* CheckpointStore;
23
24 - const getTurnDiff: CheckpointDiffQueryShape["getTurnDiff"] = (input) =>
25 - Effect.gen(function* () {
24 + const getTurnDiff: CheckpointDiffQueryShape["getTurnDiff"] = Effect.fn("getTurnDiff")(
25 + function* (input) {
26 const operation = "CheckpointDiffQuery.getTurnDiff";
27
28 if (input.fromTurnCount === input.toTurnCount) {
@@ -149,7 +149,8 @@ const make = Effect.gen(function* () {
149 }
150
151 return turnDiff;
152 - });
152 + },
153 + );
154
155 const getFullThreadDiff: CheckpointDiffQueryShape["getFullThreadDiff"] = (
156 input: OrchestrationGetFullThreadDiffInput,