test(codex): complete sandbox turn inline · openclaw/openclaw@c14a0c6
steipete
·
2026-05-24
·
via Recent Commits to openclaw:main
File tree
extensions/codex/src/app-server
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1212,13 +1212,13 @@ describe("runCodexAppServerAttempt", () => {
|
1212 | 1212 | }, |
1213 | 1213 | }, |
1214 | 1214 | } as never; |
1215 | | -const { requests, waitForMethod, completeTurn } = createStartedThreadHarness(); |
| 1215 | +const { requests } = createStartedThreadHarness(async (method) => |
| 1216 | +method === "turn/start" ? turnStartResult("turn-1", "completed") : undefined, |
| 1217 | +); |
1216 | 1218 | |
1217 | 1219 | const run = runCodexAppServerAttempt(params, { |
1218 | 1220 | pluginConfig: { appServer: { mode: "yolo" } }, |
1219 | 1221 | }); |
1220 | | -await waitForMethod("turn/start"); |
1221 | | -await completeTurn({ threadId: "thread-1", turnId: "turn-1" }); |
1222 | 1222 | await run; |
1223 | 1223 | |
1224 | 1224 | const startRequest = requests.find((request) => request.method === "thread/start"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。