Skip to content

Commit 867ac81

Browse files
committed
test(server): retain executed model notes in tail result reads
1 parent bd4471a commit 867ac81

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/src/peer/RemoteDelegation.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,8 @@ it.effect.each([
16241624
const delegated = yield* delegateToBox(a);
16251625
const status =
16261626
scenario === "cancelled" || scenario === "interrupted" ? scenario : "completed";
1627+
const modelNote = scenario === "terminal" || scenario === "long";
1628+
if (modelNote) yield* Ref.set(thread.executedModel, "gpt-5.4-mini");
16271629
yield* Ref.set(thread.status, status);
16281630
yield* Deferred.succeed(thread.finished, undefined);
16291631
if (scenario === "cancel") {
@@ -1639,7 +1641,9 @@ it.effect.each([
16391641
} else {
16401642
expect(yield* taskResult(a, delegated.taskId)).toMatchObject({
16411643
status,
1642-
result,
1644+
result: modelNote
1645+
? `Requested model gpt-5.4; the provider reported running gpt-5.4-mini.\n\n${result}`
1646+
: result,
16431647
});
16441648
}
16451649
const pages = reads.filter((read) => read.itemId === undefined);

0 commit comments

Comments
 (0)