mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 00:14:54 +00:00
fix(claude): retain capabilities for explicitly configured Mythos
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user