Skip to content

Commit 8f0a24e

Browse files
chore(lint): enforce catchToIgnore
1 parent 9d1e5a8 commit 8f0a24e

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎apps/server/src/mcp/AcpMcpStdioBridge.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export function runAcpMcpStdioBridge(options: AcpMcpStdioBridgeOptions): Effect.
314314

315315
const reader = NodeReadline.createInterface({ input: options.input });
316316
yield* Stream.runForEach(Stream.fromAsyncIterable(reader, bridgeError), dispatch).pipe(
317-
Effect.catchCause(() => Effect.void),
317+
Effect.ignoreCause,
318318
);
319319
yield* Fiber.awaitAll(running);
320320
});

‎apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3008,7 +3008,7 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
30083008
)
30093009
: Effect.void,
30103010
),
3011-
Effect.catch(() => Effect.void),
3011+
Effect.ignore,
30123012
Effect.forkIn(scope),
30133013
);
30143014
}

‎apps/server/src/textGeneration/CodexTextGeneration.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ export const makeCodexTextGeneration = Effect.fn("makeCodexTextGeneration")(func
8080
);
8181

8282
const removeTempFileDir = (filePath: string): Effect.Effect<void, never> =>
83-
fileSystem
84-
.remove(path.dirname(filePath), { recursive: true })
85-
.pipe(Effect.catch(() => Effect.void));
83+
fileSystem.remove(path.dirname(filePath), { recursive: true }).pipe(Effect.ignore);
8684

8785
// Background fibers may inherit closed scopes that immediately reap temp files; write unscoped.
8886
const writeTempFile = (

‎packages/provider-grok/src/server/xaiAcpExtension.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ export const makeXAiPromptCompletionRuntime = Effect.fn("makeXAiPromptCompletion
14431443
pendingRef: pendingXAiPromptCompletionsRef,
14441444
completedPromptIdsRef: completedXAiPromptIdsRef,
14451445
notification,
1446-
}).pipe(Effect.catch(() => Effect.void));
1446+
}).pipe(Effect.ignore);
14471447

14481448
yield* Effect.forEach(
14491449
["x.ai/session/prompt_complete", "_x.ai/session/prompt_complete"] as const,

‎tsconfig.base.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"namespaceImportPackages": ["@effect/platform-node", "effect"],
2525
"effectFn": ["span", "inferred-span", "suggested-span"],
2626
"diagnosticSeverity": {
27+
"catchToIgnore": "error",
2728
"unnecessaryEffectGen": "error",
2829
"allOfMapToForEach": "error",
2930
"catchToOrElseSucceed": "error",

0 commit comments

Comments
 (0)