Skip to content

Commit 079c244

Browse files
refactor(server): drop the manifest load's interrupt mapping
An interrupted fiber skips catch handlers, so the disk read's catchCause never turned an interruption into a cached empty result. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent b16a2c4 commit 079c244

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎apps/server/src/provider/ModelManifest.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
} from "@t3tools/contracts";
2222
import { codexModelFamily } from "@t3tools/shared/model";
2323
import * as Cache from "effect/Cache";
24-
import * as Cause from "effect/Cause";
2524
import * as Clock from "effect/Clock";
2625
import * as Context from "effect/Context";
2726
import * as Effect from "effect/Effect";
@@ -362,11 +361,7 @@ export const make = Effect.gen(function* () {
362361
Effect.gen(function* () {
363362
const fromDisk = yield* fileSystem.readFileString(cachePath).pipe(
364363
Effect.flatMap((raw) => decodeManifestCache(raw)),
365-
// An interruption must stay one, or `Cache` would keep this load as a
366-
// successful empty result and never read the disk copy again.
367-
Effect.catchCause((cause) =>
368-
Cause.hasInterrupts(cause) ? Effect.interrupt : Effect.succeed(null),
369-
),
364+
Effect.catchCause(() => Effect.succeed(null)),
370365
);
371366
if (fromDisk === null) return;
372367
// The disk copy is the last-seen remote manifest, so it outranks the

0 commit comments

Comments
 (0)