fix: align sqlite branch with main

This commit is contained in:
Peter Steinberger
2026-05-16 15:33:32 +01:00
parent 7d00ee03be
commit 4fc56f950f
3 changed files with 6 additions and 9 deletions

View File

@@ -305,7 +305,7 @@ describe("resolveAuthProfileOrder", () => {
expect(order).toEqual([]);
});
it("preserves native Codex profiles before OpenAI alias API-key order", async () => {
it("respects friendly OpenAI alias API-key order when Codex auth is selected", async () => {
const store: AuthProfileStore = {
version: 1,
profiles: {
@@ -336,7 +336,7 @@ describe("resolveAuthProfileOrder", () => {
provider: "openai-codex",
});
expect(order).toEqual(["openai-codex:personal", "openai:default"]);
expect(order).toEqual(["openai:default"]);
});
it("keeps Codex profiles listed in the friendly OpenAI order for Codex auth", async () => {

View File

@@ -373,9 +373,8 @@ describe("runEmbeddedPiAgent", () => {
expect(ensureOpenClawModelCatalogMock).not.toHaveBeenCalled();
});
it("resolves explicit OpenAI OpenClaw runs through Codex when auth order starts with Codex OAuth", async () => {
const sessionFile = nextSessionFile();
const baseConfig = createEmbeddedAgentRunnerOpenAiConfig(["mock-1"]);
it("resolves explicit OpenAI PI runs through Codex when auth order starts with Codex OAuth", async () => {
const baseConfig = createEmbeddedPiRunnerOpenAiConfig(["mock-1"]);
const openAIProvider = baseConfig.models?.providers?.openai;
if (!openAIProvider) {
throw new Error("expected OpenAI provider test config");
@@ -414,9 +413,8 @@ describe("runEmbeddedPiAgent", () => {
}),
);
await runEmbeddedAgent({
sessionId: "codex-first-openclaw",
sessionFile,
await runEmbeddedPiAgent({
sessionId: "codex-first-pi",
workspaceDir,
config: cfg,
prompt: "hello",

View File

@@ -88,7 +88,6 @@ import {
shouldPreferExplicitConfigApiKeyAuth,
} from "../model-auth.js";
import { ensureOpenClawModelCatalog } from "../models-config.js";
import { resolveContextConfigProviderForRuntime } from "../openai-codex-routing.js";
import {
OPENAI_CODEX_PROVIDER_ID,
listOpenAIAuthProfileProvidersForAgentRuntime,