Skip to content

Commit 38a9b92

Browse files
committed
fix(provider-cursor): type selective identity recovery
1 parent ea83389 commit 38a9b92

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/provider-cursor/src/server/CursorSdkCatalog.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ export const makeCursorSdkCatalog = Effect.fn("CursorSdkCatalog.make")(function*
8787
Effect.all(
8888
{
8989
// Enterprise teams can block account labels while model discovery still works.
90-
user: probes.readUser(apiKey).pipe(
91-
Effect.catchIf(
92-
(error) => error.accountBlocked,
93-
() => Effect.undefined,
94-
),
90+
user: Effect.catchIf(
91+
probes.readUser(apiKey),
92+
(error: CursorSdkCatalogError): boolean => error.accountBlocked,
93+
() => Effect.undefined,
94+
(error: CursorSdkCatalogError) => Effect.fail(error),
9595
),
9696
models: Cache.get(modelCache, apiKey),
9797
},

0 commit comments

Comments
 (0)