Unified · Split
| @@ -3,6 +3,7 @@ import * as NodeServices from "@effect/platform-node/NodeServices"; · 2 unmodified lines | ||
| 3 | 3 | import { |
| 4 | 4 | CommandId, |
| 5 | 5 | EnvironmentId, |
| 6 | + GitManagerError, | |
| 6 | 7 | type OrchestrationV2ThreadProjection, |
| 7 | 8 | type OrchestrationV2ThreadShell, |
| 8 | 9 | type Project, |
| @@ -454,10 +455,16 @@ const makeHarness = (options: HarnessOptions = {}) => { · 445 unmodified lines | ||
| 454 | 455 | return Effect.die(new Error("simulated local status defect")); |
| 455 | 456 | } |
| 456 | 457 | if (localStatusCallCount === 1 && options.localStatusFailure === "interrupt") { |
| 457 | − return Effect.failCause(Cause.interrupt()) as never; | |
| 458 | + return Effect.interrupt; | |
| 458 | 459 | } |
| 459 | 460 | if (localStatusCallCount === 1 && options.localStatusFailure === "typed") { |
| 460 | − return Effect.fail("simulated local status failure") as never; | |
| 461 | + return Effect.fail( | |
| 462 | + new GitManagerError({ | |
| 463 | + operation: "WorktreeMcpService.test.localStatus", | |
| 464 | + cwd: input.cwd, | |
| 465 | + detail: "simulated local status failure", | |
| 466 | + }), | |
| 467 | + ); | |
| 461 | 468 | } |
| 462 | 469 | if (options.localStatusFailsOnCall === localStatusCallCount) { |
| 463 | 470 | return Effect.fail("simulated local status failure") as never; |