@devries-cameron20 / t3code Mirror · read-only / commits / f4ba6ae1fb
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 22, 17:00 UTC

chore(lint): enforce catchToIgnore (#25087)

Julius Marminge committed Oct 25, 2026 at 18:18 UTC f4ba6ae1fb71b7d8f3508befd2d3e2000c80fa00
5 files changed +5 -6
apps/server/src/mcp/AcpMcpStdioBridge.ts
+1 -1
@@ -314,7 +314,7 @@ export function runAcpMcpStdioBridge(options: AcpMcpStdioBridgeOptions): Effect.
314
315 const reader = NodeReadline.createInterface({ input: options.input });
316 yield* Stream.runForEach(Stream.fromAsyncIterable(reader, bridgeError), dispatch).pipe(
317 - Effect.catchCause(() => Effect.void),
317 + Effect.ignoreCause,
318 );
319 yield* Fiber.awaitAll(running);
320 });
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts
+1 -1
@@ -3008,7 +3008,7 @@ export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
3008 )
3009 : Effect.void,
3010 ),
3011 - Effect.catch(() => Effect.void),
3011 + Effect.ignore,
3012 Effect.forkIn(scope),
3013 );
3014 }
apps/server/src/textGeneration/CodexTextGeneration.ts
+1 -3
@@ -80,9 +80,7 @@ export const makeCodexTextGeneration = Effect.fn("makeCodexTextGeneration")(func
80 );
81
82 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);
84
85 // Background fibers may inherit closed scopes that immediately reap temp files; write unscoped.
86 const writeTempFile = (
packages/provider-grok/src/server/xaiAcpExtension.ts
+1 -1
@@ -1443,7 +1443,7 @@ export const makeXAiPromptCompletionRuntime = Effect.fn("makeXAiPromptCompletion
1443 pendingRef: pendingXAiPromptCompletionsRef,
1444 completedPromptIdsRef: completedXAiPromptIdsRef,
1445 notification,
1446 - }).pipe(Effect.catch(() => Effect.void));
1446 + }).pipe(Effect.ignore);
1447
1448 yield* Effect.forEach(
1449 ["x.ai/session/prompt_complete", "_x.ai/session/prompt_complete"] as const,
tsconfig.base.json
+1
@@ -24,6 +24,7 @@
24 "namespaceImportPackages": ["@effect/platform-node", "effect"],
25 "effectFn": ["span", "inferred-span", "suggested-span"],
26 "diagnosticSeverity": {
27 + "catchToIgnore": "error",
28 "unnecessaryEffectGen": "error",
29 "allOfMapToForEach": "error",
30 "catchToOrElseSucceed": "error",