Skip to content

Commit 600c95c

Browse files
committed
refactor(server): preserve only real probe causes
1 parent a4014fd commit 600c95c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/server/src/provider/Layers/OpenCodeProvider.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const OPENCODE_PRESENTATION = {
3434
const OPENCODE_VERSION_PROBE_TIMEOUT = "4 seconds";
3535

3636
class OpenCodeProbeError extends Data.TaggedError("OpenCodeProbeError")<{
37-
readonly cause: unknown;
37+
readonly cause?: unknown;
3838
readonly detail: string;
3939
}> {}
4040

@@ -405,8 +405,7 @@ export const checkOpenCodeProviderStatus = Effect.fn("checkOpenCodeProviderStatu
405405
orElse: () =>
406406
Effect.fail(
407407
new OpenCodeProbeError({
408-
cause: new Error("OpenCode CLI version probe timed out."),
409-
detail: "OpenCode CLI version probe timed out after 4 seconds.",
408+
detail: `OpenCode CLI version probe timed out after ${OPENCODE_VERSION_PROBE_TIMEOUT}.`,
410409
}),
411410
),
412411
}),

0 commit comments

Comments
 (0)