mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 04:31:10 +00:00
refactor: narrow codex harness selection
This commit is contained in:
@@ -10,12 +10,11 @@ describe("resolveEmbeddedAgentRuntime", () => {
|
||||
expect(resolveEmbeddedAgentRuntime({ OPENCLAW_AGENT_RUNTIME: "pi" })).toBe("pi");
|
||||
});
|
||||
|
||||
it("accepts codex app-server aliases", () => {
|
||||
expect(resolveEmbeddedAgentRuntime({ OPENCLAW_AGENT_RUNTIME: "codex-app-server" })).toBe(
|
||||
"codex",
|
||||
);
|
||||
it("preserves plugin harness ids without core-owned aliases", () => {
|
||||
expect(resolveEmbeddedAgentRuntime({ OPENCLAW_AGENT_RUNTIME: "codex" })).toBe("codex");
|
||||
expect(resolveEmbeddedAgentRuntime({ OPENCLAW_AGENT_RUNTIME: "app-server" })).toBe("codex");
|
||||
expect(resolveEmbeddedAgentRuntime({ OPENCLAW_AGENT_RUNTIME: "codex-app-server" })).toBe(
|
||||
"codex-app-server",
|
||||
);
|
||||
});
|
||||
|
||||
it("accepts auto mode", () => {
|
||||
|
||||
@@ -9,9 +9,6 @@ export function normalizeEmbeddedAgentRuntime(raw: string | undefined): Embedded
|
||||
if (value === "pi") {
|
||||
return "pi";
|
||||
}
|
||||
if (value === "codex" || value === "codex-app-server" || value === "app-server") {
|
||||
return "codex";
|
||||
}
|
||||
if (value === "auto") {
|
||||
return "auto";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user