Use tagged catch for command resolution

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-06-20 20:21:05 -07:00
1 parent 7f05bcdbc0
commit 71c6069aa9
1 file changed
+3 -1
@@ -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);