Adjust js_repl separator regression for latest tool output shape

Update the high-level js_repl regression to assert against the current codex.tool() return shape on latest main.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Aaron Levine
2026-03-11 19:55:14 -07:00
parent 6765bed1ce
commit 5075936900

View File

@@ -3327,7 +3327,7 @@ await codex.emitImage(out);
let code = format!(
r#"
const out = await codex.tool("{tool_name}", {{}});
const text = Array.isArray(out.output) ? out.output[0]?.text : undefined;
const text = typeof out === "string" ? out : out?.output;
console.log(text === {literal});
console.log(text);
"#