Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cursor): explain model rejections from the account catalog #19678

MergedStiensWout(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/19678/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 125 additions and 0 deletions (loading 2).

x
0 of 4 viewed, 4 left
1 addition and 0 deletionspackages/provider-core/src/server/failure.tsModified
View file
@@ -47,6 +47,7 @@
case "ContextHandoffBudgetError":
return new ContextHandoffBudgetError().message;
case "ClaudeBackgroundWorkBlocksQueryReplacementError":
+ case "CursorModelUnavailableError":
return stringField(cause, "message");
case "ContextHandoffDeliveryUncertainError":
return "T3 could not confirm whether conversation history reached the provider. Retry the turn to recover the session.";
124 additions and 0 deletionspackages/provider-cursor/src/server/adapter.test.tsModified
View file
@@ -26,6 +26,7 @@
import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions";
import * as ProviderAdapter from "@t3tools/provider-core/server/ProviderAdapter";
+import { makeProviderFailure } from "@t3tools/provider-core/server/failure";
import {
cursorMcpServers,
cursorRuntimeAgentPolicy,
@@ -35,6 +36,7 @@
nestedToolCallFromEnvelope,
} from "./adapter.ts";
import * as CursorAgentSdk from "./CursorAgentSdk.ts";
+import { ConfigurationError } from "./sdk.ts";
​
const decodeCursorSettings = Schema.decodeEffect(CursorSettings);
​