Skip to content

Commit 9881616

Browse files
committed
fix: prevent activity-dispatch errors from being misattributed as setup-script failures
Add Effect.ignoreCause to the activity dispatch inside Effect.tap so that failures from appendSetupScriptActivity (recording requested/started activities) do not propagate into the main error channel and get caught by the downstream Effect.catch handler, which would incorrectly record a setup-script.failed activity even though the script started successfully.
1 parent dcaf3aa commit 9881616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const WsRpcLayer = WsRpcGroup.toLayer(
174174
payload,
175175
tone: "info",
176176
}),
177-
]).pipe(Effect.asVoid);
177+
]).pipe(Effect.asVoid, Effect.ignoreCause({ log: true }));
178178
}),
179179
Effect.catch((error) => {
180180
const detail =

0 commit comments

Comments
 (0)