Try Claude before Codex in the central profiles (#25)

Co-authored-by: Danny Kim <temeddix@gmail.com>
Co-committed-by: Danny Kim <temeddix@gmail.com>
This commit was merged in pull request #25.
This commit is contained in:
Danny Kim
2026-10-20 14:27:19 +00:00
committed by temeddix
parent 063eb09750
commit 3d42665864
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
{ {
"reviewer-token": "v1:XFUvCI9PnXVaW-ig:_3S9BvXywUp29cVYGA_EzFScKwC5oHkV9x2Ld8k-V_uiG7iA8n3fmjXCArzh2Lz-JDgy3IMTHoY", "reviewer-token": "v1:XFUvCI9PnXVaW-ig:_3S9BvXywUp29cVYGA_EzFScKwC5oHkV9x2Ld8k-V_uiG7iA8n3fmjXCArzh2Lz-JDgy3IMTHoY",
"profiles": [ "profiles": [
{
"type": "CODEX",
"model": "gpt-5.6-terra"
},
{ {
"type": "CLAUDE", "type": "CLAUDE",
"model": "claude-sonnet-5", "model": "claude-sonnet-5",
"token": "v1:-dyfF6ZicEhjPk4C:WCuMaGd09tYjtzUCl7abloRzPITvP5C35WpR372w3O_tcaD-ls-yV5sJBdU8iIVApZVCC98sY2gOyM3o9RMa8ciJq8Fuys7KxlYOp8QiluL9AYMSQi6rEsSH71EPWnxSACgo3uDQY8bWQpUlEZvXH9O-ZN9A58dh6b3vRg" "token": "v1:-dyfF6ZicEhjPk4C:WCuMaGd09tYjtzUCl7abloRzPITvP5C35WpR372w3O_tcaD-ls-yV5sJBdU8iIVApZVCC98sY2gOyM3o9RMa8ciJq8Fuys7KxlYOp8QiluL9AYMSQi6rEsSH71EPWnxSACgo3uDQY8bWQpUlEZvXH9O-ZN9A58dh6b3vRg"
}, },
{
"type": "CODEX",
"model": "gpt-5.6-terra"
},
{ {
"type": "OPENCODE", "type": "OPENCODE",
"model": "openrouter/qwen/qwen3.8-27b", "model": "openrouter/qwen/qwen3.8-27b",
+2 -2
View File
@@ -229,7 +229,7 @@ test("profile preparation does not receive provider credentials", async () => {
expect(runner.includes("prepareProfile(profile, token)")).toBe(false); expect(runner.includes("prepareProfile(profile, token)")).toBe(false);
}); });
test("central profiles fall back from Codex to Claude to OpenCode", async () => { test("central profiles fall back from Claude to Codex to OpenCode", async () => {
const credentials: unknown = JSON.parse( const credentials: unknown = JSON.parse(
await readFile("profiles.json", "utf8"), await readFile("profiles.json", "utf8"),
); );
@@ -238,8 +238,8 @@ test("central profiles fall back from Codex to Claude to OpenCode", async () =>
"profiles", "profiles",
); );
expect(profiles.map((profile) => profile.get("type"))).toStrictEqual([ expect(profiles.map((profile) => profile.get("type"))).toStrictEqual([
"CODEX",
"CLAUDE", "CLAUDE",
"CODEX",
"OPENCODE", "OPENCODE",
]); ]);
expect(profiles[2]?.get("model")).toBe("openrouter/qwen/qwen3.8-27b"); expect(profiles[2]?.get("model")).toBe("openrouter/qwen/qwen3.8-27b");