Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): resumed Claude subagents keep their own model and effort label #14272

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

Showing 2 changed files with 96 additions and 25 deletions.

x
0 of 2 viewed, 2 left
83 additions and 5 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -3945,8 +3945,8 @@
attachments: [],
- // No explicit model/effort on the launch input: the task inherits the
- // session's selection.
+ // No explicit model/effort on the launch input: the model starts from the
+ // session's selection, and effort stays unknown.
harness.query.emit({
type: "system",
subtype: "task_started",
@@ -3984,13 +3984,13 @@
assert.equal(started?.type, "task.started");
if (started?.type === "task.started") {
assert.equal(started.payload.model, SYNTHETIC_CLAUDE_CAPABLE_MODEL);
- assert.equal(started.payload.effort, "max");
+ assert.equal(started.payload.effort, undefined);
const progress = taskEvents[1];
assert.equal(progress?.type, "task.progress");
if (progress?.type === "task.progress") {
assert.equal(progress.payload.model, SYNTHETIC_SUBAGENT_MODEL);
- assert.equal(progress.payload.effort, "max");
+ assert.equal(progress.payload.effort, undefined);
}).pipe(
Effect.provideService(Random.Random, makeDeterministicRandomService()),
@@ -4063,7 +4063,7 @@