fix(claude): retain capabilities for explicitly configured Mythos

This commit is contained in:
Mohamed Boudra
2026-10-08 20:36:27 +02:00
parent 0f3f6ce92e
commit 40cf21f877
2 changed files with 9 additions and 4 deletions
@@ -282,9 +282,11 @@ describe("ClaudeAgentClient.fetchCatalog", () => {
expect(models.filter((model) => model.id !== "claude-mythos-5-1")).toEqual(
getClaudeModels("2.1.293").filter((model) => model.id !== "claude-mythos-5-1"),
);
expect(models.find((model) => model.id === "claude-mythos-5-1")?.description).toBe(
"From Claude settings.json model",
);
expect(models.find((model) => model.id === "claude-mythos-5-1")).toEqual({
...findClaudeModel("claude-mythos-5-1"),
label: "claude-mythos-5-1",
description: "From Claude settings.json model",
});
});
it("omits unconfirmed Mythos after a failed probe and retries on refresh", async () => {
@@ -71,7 +71,10 @@ export async function getClaudeModelsWithSettings(
}
continue;
}
models.push(model);
const manifestModel = getClaudeModels(claudeCodeVersion).find(
(candidate) => candidate.id === model.id,
);
models.push({ ...manifestModel, ...model });
}
return models;