diff --git a/packages/cli/src/run/noninteractive.ts b/packages/cli/src/run/noninteractive.ts index df9bc81ad89..2f0d0b13c61 100644 --- a/packages/cli/src/run/noninteractive.ts +++ b/packages/cli/src/run/noninteractive.ts @@ -564,7 +564,7 @@ export async function runNonInteractivePrompt(input: Input) { messageID: message.id, type: "reasoning", text, - metadata: item.state, + metadata: item.native, time: { start: message.time.created, end: timestamp }, } renderedReasoning.set(key, item.text) diff --git a/packages/core/test/session-runner.test.ts b/packages/core/test/session-runner.test.ts index 4eedc03e945..47a0269ccc6 100644 --- a/packages/core/test/session-runner.test.ts +++ b/packages/core/test/session-runner.test.ts @@ -3508,12 +3508,12 @@ describe("SessionRunnerLLM", () => { { type: "reasoning", text: "Signed thought", - state: { signature: "sig_1" }, + native: { signature: "sig_1" }, }, { type: "reasoning", text: "Encrypted thought", - state: { itemId: "rs_1", reasoningEncryptedContent: "encrypted-state" }, + native: { itemId: "rs_1", reasoningEncryptedContent: "encrypted-state" }, }, ]), ]) @@ -3565,7 +3565,7 @@ describe("SessionRunnerLLM", () => { { type: "reasoning", text: "thinking", - state: { reasoningField: "reasoning", reasoningDetails: details }, + native: { reasoningField: "reasoning", reasoningDetails: details }, }, { type: "text", text: "Hello world" }, ]), @@ -3609,7 +3609,7 @@ describe("SessionRunnerLLM", () => { expect(yield* s.context).toMatchObject([ Expected.user("Check first"), Expected.assistant({}, [ - { type: "text", text: "Checking.", state: { itemId: "msg_commentary", phase: "commentary" } }, + { type: "text", text: "Checking.", native: { itemId: "msg_commentary", phase: "commentary" } }, ]), ]) @@ -5444,7 +5444,7 @@ describe("SessionRunnerLLM", () => { { type: "reasoning", text: "", - state: { itemId: "rs_disconnected", reasoningEncryptedContent: "encrypted-state" }, + native: { itemId: "rs_disconnected", reasoningEncryptedContent: "encrypted-state" }, }, ]), { type: "synthetic", text: INCOMPLETE_STREAM_CONTINUATION },