Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): label nested agent models from spawn/response #7199

Closedmaslinedwin(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7199/headopened View on GitHub

Showing 3 changed files with 173 additions and 3 deletions (loading 2).

x
0 of 3 viewed, 3 left
173 additions and 3 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -1781,8 +1781,9 @@
attachments: [],
- // No explicit model/effort on the launch input: the task inherits the
- // session's selection.
+ // No explicit model on the launch: leave it unlabeled. Effort still
+ // inherits the session selection. Inventing the session model here is
+ // what mislabeled nested Agent-tool children (#6026).
harness.query.emit({
type: "system",
subtype: "task_started",
@@ -1819,7 +1820,7 @@
const started = taskEvents[0];
assert.equal(started?.type, "task.started");
if (started?.type === "task.started") {
- assert.equal(started.payload.model, "claude-opus-4-6");
+ assert.equal(started.payload.model, undefined);
assert.equal(started.payload.effort, "max");
const progress = taskEvents[1];
@@ -1834,6 +1835,175 @@
+ it.effect("depth-2 nested agent uses the child model, never the session default", () => {
+ const harness = makeHarness();
+ return Effect.gen(function* () {