Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration-v2): show reported subagent models #14108

MergedBil0000(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/14108/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 7 changed files with 100 additions and 5 deletions (loading 4).

x
0 of 7 viewed, 7 left
25 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsModified
View file
@@ -1037,6 +1037,19 @@
// Production thread 54aeb6d7 split after "(command". Metadata shapes
// below were captured from live Devin sessions showy-mile/fragrant-chamomile.
const updates = [
+ {
+ sessionUpdate: "tool_call_update",
+ toolCallId: "child-a",
+ status: "in_progress",
+ _meta: {
+ "cognition.ai/subagent_started": {
+ agentId: "child-a",
+ title: "Map orchestration",
+ task: "Run pwd, then reply ONE.",
+ model: " \t ",
+ },
+ },
+ },
sessionUpdate: "tool_call_update",
toolCallId: "child-a",
@@ -1181,6 +1194,18 @@
event.type === "subagent.updated" ? [event.subagent] : [],
const task = tasks.at(-1);
+ assert.isNull(tasks[0]?.model);
+ const childThread = events.find(
+ (event) =>
+ event.type === "app_thread.created" && event.appThread.id === task?.childThreadId,
+ );