mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
test(codex): read canonical steering terminal outcome (#113416)
This commit is contained in:
committed by
GitHub
parent
b42ec8bfae
commit
d734df9d0f
@@ -2,6 +2,7 @@
|
||||
import path from "node:path";
|
||||
import { GPT5_BEHAVIOR_CONTRACT as CODEX_GPT5_BEHAVIOR_CONTRACT } from "openclaw/plugin-sdk/provider-model-shared";
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { readAttemptTerminal } from "./attempt-terminal.test-helper.js";
|
||||
import type { CodexServerNotification } from "./protocol.js";
|
||||
import {
|
||||
createParams,
|
||||
@@ -128,7 +129,7 @@ describe("runCodexAppServerAttempt steering", () => {
|
||||
handle?.abort();
|
||||
expect(handle?.isAborted?.()).toBe(true);
|
||||
expect(activeRunRegistrationMocks.clearActiveEmbeddedRun).not.toHaveBeenCalled();
|
||||
await expect(run).resolves.toMatchObject({ aborted: true });
|
||||
expect(readAttemptTerminal(await run).aborted).toBe(true);
|
||||
expect(activeRunRegistrationMocks.clearActiveEmbeddedRun).toHaveBeenCalledWith(
|
||||
params.sessionId,
|
||||
handle,
|
||||
|
||||
Reference in New Issue
Block a user