Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
Artifacts
Releases
CI
Agents
Settings
fix(cursor): fall back to session models on older cli versions
#9922
Send to my agent
Closed
maria-rcks
wants to merge 2 commits into
main
from
refs/pull/9922/head
·
opened
3 months ago
View on GitHub
Conversation
9
Commits
2
Files changed
3
Impact
Showing
3 changed files
with
88 additions
and
6 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
17 additions and 0 deletions
+17
-0
apps/server/scripts/acp-mock-agent.ts
Modified
Diff
Before/After
Viewed
apps/server/scripts/acp-mock-agent.ts
View file
Expand up
Show all 349 lines
@@ -350,6 +350,17 @@
350
350
];
351
351
352
352
function
modelState
():
AcpSchema
.
SessionModelState
{
353
+
if
(process.
env
.
T3_ACP_CURSOR_MODELS_ERROR
===
"missing"
) {
354
+
return
{
355
+
currentModelId
:
" grok-4.6 "
,
356
+
availableModels
: [
357
+
{
modelId
:
" grok-4.6 "
,
name
:
" Grok 4.6 "
},
358
+
{
modelId
:
"grok-mock-alt"
,
name
:
" Grok Mock Alt "
},
359
+
{
modelId
:
"blank-name"
,
name
:
" "
},
360
+
{
modelId
:
" "
,
name
:
"Invalid"
},
361
+
],
362
+
};
363
+
}
353
364
if
(antigravityProfile) {
354
365
return
{ currentModelId,
availableModels
: antigravityModels };
355
366
}
Expand up
Expand down
Show all 931 lines
@@ -1287,6 +1298,12 @@
1287
1298
});
1288
1299
}
1289
1300
if
(method ===
"cursor/list_available_models"
) {
1301
+
if
(process.
env
.
T3_ACP_CURSOR_MODELS_ERROR
===
"missing"
) {
1302
+
return
Effect
.
fail
(
AcpError
.
AcpRequestError
.
methodNotFound
(method));
1303
+
}
1304
+
if
(process.
env
.
T3_ACP_CURSOR_MODELS_ERROR
===
"internal"
) {
1305
+
return
Effect
.
fail
(
AcpError
.
AcpRequestError
.
internalError
(
"Mock model discovery failure"
));
1306
+
}
1290
1307
return
Effect
.
succeed
({
Home
Search
Explore
Menu