test(codex): include model catalog reads in context checks (#163387)

This commit is contained in:
Vincent Koc 2026-10-02 15:38:39 +07:00 • committed by GitHub
parent 2ab22d8772
commit 18ad182a8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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:");