Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(cursor): reject out-of-catalog custom models before ACP #13268

Closedluisfelipesena(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/13268/headopened View on GitHub

Showing 9 changed files with 42 additions and 3 deletions (loading 7).

x
0 of 9 viewed, 9 left
35 additions and 0 deletionsapps/mobile/src/lib/modelOptions.test.tsModified
View file
@@ -339,6 +339,41 @@
});
});
​
+ it("leaves Cursor custom models out of the picker", () => {
+ const config = {
+ providers: [
+ {
+ instanceId: "cursor",
+ driver: "cursor",
+ displayName: "Cursor",
+ enabled: true,
+ installed: true,
+ auth: { status: "authenticated" },
+ models: [
+ { slug: "composer-2.5", name: "Composer", isCustom: false, capabilities: null },
+ {
+ slug: "deepseek/deepseek-v4.1-flash",
+ name: "DeepSeek",
+ isCustom: true,
+ capabilities: null,
+ },
+ ],
+ },
+ ],
+ } as unknown as ServerConfig;
+ const selection = {
+ instanceId: ProviderInstanceId.make("cursor"),
+ model: "deepseek/deepseek-v4.1-flash",
+ };