From 71c6069aa914d08d9002827687cb72018d726dac Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Sat, 20 Jun 2026 07:04:05 -0700 Subject: [PATCH] Use tagged catch for command resolution Co-authored-by: codex --- apps/server/src/provider/providerMaintenance.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/server/src/provider/providerMaintenance.ts b/apps/server/src/provider/providerMaintenance.ts index 8645f9f943..fa5e3c3116 100644 --- a/apps/server/src/provider/providerMaintenance.ts +++ b/apps/server/src/provider/providerMaintenance.ts @@ -357,7 +357,9 @@ export const resolveProviderMaintenanceCapabilitiesEffect = Effect.fn( const env = options?.env ?? (yield* readCommandLookupEnv); const resolvedCommandPath = (yield* resolveCommandPath(binaryPath, { env }).pipe( - Effect.catchTag("CommandResolutionError", () => Effect.succeed(null)), + Effect.catchTags({ + CommandResolutionError: () => Effect.succeed(null), + }), )) ?? (hasPathSeparator(binaryPath) ? binaryPath : null); if (!resolvedCommandPath) { return resolver.resolve(options);