镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 1a86cdd

Browse files
committed
fix: always run version advisory enrichment in enrichCursorSnapshot
Remove the early return that skipped enrichProviderSnapshotWithVersionAdvisory when the provider was disabled or unauthenticated. This aligns Cursor with the Claude and Codex drivers which always enrich version advisory metadata regardless of provider state.
1 parent 9438727 commit 1a86cdd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎apps/server/src/provider/Layers/CursorProvider.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,13 +1106,9 @@ export const enrichCursorSnapshot = (input: {
11061106
readonly stampIdentity?: (snapshot: ServerProvider) => ServerProvider;
11071107
readonly httpClient: HttpClient.HttpClient;
11081108
}): Effect.Effect<void> => {
1109-
const { settings, snapshot, publishSnapshot } = input;
1109+
const { snapshot, publishSnapshot } = input;
11101110
const stampIdentity = input.stampIdentity ?? ((value) => value);
11111111

1112-
if (!settings.enabled || snapshot.auth.status === "unauthenticated") {
1113-
return Effect.void;
1114-
}
1115-
11161112
return enrichProviderSnapshotWithVersionAdvisory(snapshot, input.maintenanceCapabilities).pipe(
11171113
Effect.provideService(HttpClient.HttpClient, input.httpClient),
11181114
Effect.flatMap((enrichedSnapshot) =>

0 commit comments

Comments
 (0)