mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-06 22:18:50 +00:00
test(codex): include model catalog reads in context checks (#163387)
This commit is contained in:
parent
2ab22d8772
commit
18ad182a8e
1 changed files with 6 additions and 0 deletions
|
|
@ -463,9 +463,11 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
|||
"config/read",
|
||||
"configRequirements/read",
|
||||
"thread/start",
|
||||
"model/list",
|
||||
"turn/start",
|
||||
"config/read",
|
||||
"configRequirements/read",
|
||||
"model/list",
|
||||
"turn/start",
|
||||
]);
|
||||
const secondInputText = getRequestInputTextAt(firstHarness, 1);
|
||||
|
|
@ -556,6 +558,7 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
|||
"config/read",
|
||||
"configRequirements/read",
|
||||
...(resumed ? ["thread/read", "thread/resume", "thread/inject_items"] : ["thread/start"]),
|
||||
"model/list",
|
||||
"turn/start",
|
||||
]);
|
||||
const inputText = getRequestInputText(harness);
|
||||
|
|
@ -613,6 +616,7 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
|||
"config/read",
|
||||
"configRequirements/read",
|
||||
"thread/start",
|
||||
"model/list",
|
||||
"turn/start",
|
||||
]);
|
||||
const inputText = getRequestInputText(harness);
|
||||
|
|
@ -677,6 +681,7 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
|||
"config/read",
|
||||
"configRequirements/read",
|
||||
"thread/start",
|
||||
"model/list",
|
||||
"turn/start",
|
||||
]);
|
||||
expectRequestInputTextContains(harness, "OpenClaw assembled context for this turn:");
|
||||
|
|
@ -774,6 +779,7 @@ describe("runCodexAppServerAttempt context-engine lifecycle", () => {
|
|||
expect(harness.requests.map((request) => request.method)).toEqual([
|
||||
"config/read",
|
||||
"thread/start",
|
||||
"model/list",
|
||||
"turn/start",
|
||||
]);
|
||||
expectRequestInputTextContains(harness, "OpenClaw assembled context for this turn:");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue