style: catchTags over catchTag in the two Hermes handlers

Macroscope's Effect Service Conventions check requires statically known
tagged failures to route through Effect.catchTags({ ... }) even for a
single tag; these were the only two catchTag occurrences this branch added.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Ben DavisandClaude Fable 5 committed 2026-07-27 14:11:15 -07:00
1 parent 5b82054127
commit e3dc202005
2 files changed
+11 -8

No files matched your search

@@ -77,7 +77,9 @@ export const HermesDriver: ProviderDriver<HermesSettings, HermesDriverEnv> = {
const connected = yield* broker.isConnected(instanceId);
const status = yield* broker
.getInstanceStatus(instanceId)
.pipe(Effect.catchTag("HermesGatewayManagementError", () => Effect.succeed(undefined)));
.pipe(
Effect.catchTags({ HermesGatewayManagementError: () => Effect.succeed(undefined) }),
);
// Read-only: a snapshot must never create the thread as a side effect
// (this runs on every status tick). The handshake owns creation.
// A settings read that fails degrades to "no designation" rather than
@@ -973,13 +973,14 @@ export const makeHermesAdapter = Effect.fn("makeHermesAdapter")(function* (input
// offline) must not abort the sweep or fail shutdown. The session is
// deliberately left in place rather than orphaned.
adapter.stopSession(threadId).pipe(
Effect.catchTag("ProviderAdapterRequestError", (error) =>
Effect.logWarning("provider.hermes.stop-session-undeliverable", {
instanceId: input.instanceId,
threadId,
detail: error.detail,
}),
),
Effect.catchTags({
ProviderAdapterRequestError: (error) =>
Effect.logWarning("provider.hermes.stop-session-undeliverable", {
instanceId: input.instanceId,
threadId,
detail: error.detail,
}),
}),
),
{ discard: true },
),