From b6d2ad82a8152712f5597fd9d1a3c01b75d503fa Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 26 Mar 2026 19:09:12 -0700 Subject: [PATCH] fix effect lsp issues --- apps/server/src/git/Layers/GitManager.ts | 2 +- apps/server/src/provider/acp/AcpTypes.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/server/src/git/Layers/GitManager.ts b/apps/server/src/git/Layers/GitManager.ts index fe09842b53..22be670a41 100644 --- a/apps/server/src/git/Layers/GitManager.ts +++ b/apps/server/src/git/Layers/GitManager.ts @@ -1712,7 +1712,7 @@ export const makeGitManager = Effect.fn("makeGitManager")(function* () { phase: Option.getOrNull(phase), message: error.message, }); - return yield* Effect.fail(error); + return yield* error; }), ), ); diff --git a/apps/server/src/provider/acp/AcpTypes.ts b/apps/server/src/provider/acp/AcpTypes.ts index cc593a4f79..2a7ff9138f 100644 --- a/apps/server/src/provider/acp/AcpTypes.ts +++ b/apps/server/src/provider/acp/AcpTypes.ts @@ -19,22 +19,19 @@ export const JsonRpcInboundWire = Schema.Struct({ error: Schema.optional(JsonRpcErrorPayload), }); -export const AcpInboundResponse = Schema.Struct({ - _tag: Schema.Literal("response"), +export const AcpInboundResponse = Schema.TaggedStruct("response", { id: Schema.Union([Schema.String, Schema.Number]), result: Schema.optional(Schema.Unknown), error: Schema.optional(JsonRpcErrorPayload), }); -export const AcpInboundRequest = Schema.Struct({ - _tag: Schema.Literal("request"), +export const AcpInboundRequest = Schema.TaggedStruct("request", { id: Schema.Union([Schema.String, Schema.Number]), method: Schema.String, params: Schema.optional(Schema.Unknown), }); -export const AcpInboundNotification = Schema.Struct({ - _tag: Schema.Literal("notification"), +export const AcpInboundNotification = Schema.TaggedStruct("notification", { method: Schema.String, params: Schema.optional(Schema.Unknown), });