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
CI
Agents
Settings
fix(server): delegated tasks without a target use the configured fallback model
#34861
Send to my agent
Open
juliusmarminge
wants to merge 3 commits into
main
from
refs/pull/34861/head
·
opened
3 weeks ago
View on GitHub
Conversation
11
Commits
3
Files changed
3
Impact
Showing
3 changed files
with
154 additions
and
4 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
75 additions and 0 deletions
+75
-0
apps/server/src/mcp/OrchestratorMcpService.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/mcp/OrchestratorMcpService.test.ts
View file
Expand up
Show all 3,648 lines
@@ -3649,6 +3649,81 @@
3649
3649
}),
3650
3650
);
3651
3651
3652
+
it.
effect
(
"an implicit delegate target falls back from an exhausted inherited provider"
, () =>
3653
+
Effect
.
gen
(
function
* () {
3654
+
const
claudeInstanceId =
ProviderInstanceId
.
make
(
"claudeAgent"
);
3655
+
const
fallback = {
instanceId
: claudeInstanceId,
model
:
"claude-sonnet-4-6"
}
as
const
;
3656
+
const
commands:
Array
<{
readonly
modelSelection?:
unknown
}> = [];
3657
+
const
task = {
3658
+
id
: taskId,
3659
+
threadId
: parentThreadId,
3660
+
origin
:
"app_owned"
,
3661
+
childThreadId,
3662
+
providerInstanceId
: claudeInstanceId,
3663
+
model
: fallback.
model
,
3664
+
status
:
"running"
,
3665
+
result
:
null
,
3666
+
};
3667
+
const
dependencies =
Layer
.
mergeAll
(
3668
+
NodeServices
.
layer
,
3669
+
NodeCrypto
.
layer
,
3670
+
Layer
.
mock
(
ThreadManagementService
.
ThreadManagementService
)({
3671
+
hasReceipt
: () =>
Effect
.
succeed
(
false
),
3672
+
assertProviderInstanceEnabled
: () =>
Effect
.
void
,
3673
+
isProviderInstanceEnabledForProject
: () =>
Effect
.
succeed
(
true
),
3674
+
getThreadRecords
: (threadId) =>
3675
+
Effect
.
succeed
(
3676
+
threadId === parentThreadId
3677
+
?
parentProjection
(commands.
length
>
0
? [task] : [])
Home
Search
Explore
Menu