Compare commits

...
Author SHA1 Message Date
Julius Marmingeandcodex 4dbd5a4ec7 Prefer catchTags for command resolution
Co-authored-by: codex <[email protected]>
2026-06-20 04:20:20 -07:00
+3 -1
View File
@@ -604,7 +604,9 @@ export const isCommandAvailable = Effect.fn("shell.isCommandAvailable")(function
) {
return yield* resolveCommandPath(command, options).pipe(
Effect.as(true),
Effect.catchTag("CommandResolutionError", () => Effect.succeed(false)),
Effect.catchTags({
CommandResolutionError: () => Effect.succeed(false),
}),
);
});