test(codex): use harness queue surface (#79867)

This commit is contained in:
Ayaan Zaidi
2026-05-10 17:59:23 +05:30
parent d4b7fa6903
commit e6efa9861b

View File

@@ -7,6 +7,7 @@ import {
embeddedAgentLog,
nativeHookRelayTesting,
onAgentEvent,
queueAgentHarnessMessage,
resetAgentEventsForTest,
type AgentEventPayload,
type EmbeddedRunAttemptParams,
@@ -17,12 +18,11 @@ import {
} from "openclaw/plugin-sdk/hook-runtime";
import { createMockPluginRegistry } from "openclaw/plugin-sdk/plugin-test-runtime";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { queueEmbeddedPiMessageWithOutcome } from "../../../../src/agents/pi-embedded-runner/runs.js";
function queueActiveRunMessageForTest(
...args: Parameters<typeof queueEmbeddedPiMessageWithOutcome>
...args: Parameters<typeof queueAgentHarnessMessage>
): boolean {
return queueEmbeddedPiMessageWithOutcome(...args).queued;
return queueAgentHarnessMessage(...args);
}
import { CODEX_GPT5_BEHAVIOR_CONTRACT } from "../../prompt-overlay.js";
import {