test(codex): mirror raw reasoning event order · openclaw/openclaw@e718d47
steipete
·
2026-05-27
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5653,7 +5653,7 @@ describe("runCodexAppServerAttempt", () => {
|
5653 | 5653 | expect(harness.request.mock.calls.some(([method]) => method === "turn/interrupt")).toBe(false); |
5654 | 5654 | }); |
5655 | 5655 | |
5656 | | -it("keeps waiting after raw reasoning completes before a visible message call", async () => { |
| 5656 | +it("keeps waiting after reasoning and its raw mirror complete before a visible message call", async () => { |
5657 | 5657 | const harness = createStartedThreadHarness(); |
5658 | 5658 | const params = createParams( |
5659 | 5659 | path.join(tempDir, "session.jsonl"), |
@@ -5670,6 +5670,22 @@ describe("runCodexAppServerAttempt", () => {
|
5670 | 5670 | settled = true; |
5671 | 5671 | }); |
5672 | 5672 | await harness.waitForMethod("turn/start"); |
| 5673 | +await harness.notify({ |
| 5674 | +method: "item/started", |
| 5675 | +params: { |
| 5676 | +threadId: "thread-1", |
| 5677 | +turnId: "turn-1", |
| 5678 | +item: { id: "reasoning-1", type: "reasoning" }, |
| 5679 | +}, |
| 5680 | +}); |
| 5681 | +await harness.notify({ |
| 5682 | +method: "item/completed", |
| 5683 | +params: { |
| 5684 | +threadId: "thread-1", |
| 5685 | +turnId: "turn-1", |
| 5686 | +item: { id: "reasoning-1", type: "reasoning" }, |
| 5687 | +}, |
| 5688 | +}); |
5673 | 5689 | await harness.notify({ |
5674 | 5690 | method: "rawResponseItem/completed", |
5675 | 5691 | params: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。