mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:51:37 +00:00
fix(models): normalize trailing @profile parsing across resolver paths
Co-authored-by: Vincent Koc <vincentkoc@ieee.org> Co-authored-by: Marcus Castro <mcaxtr@gmail.com> Co-authored-by: Brandon Wise <brandonawise@gmail.com>
This commit is contained in:
@@ -172,6 +172,21 @@ describe("/model chat UX", () => {
|
||||
isDefault: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps cloudflare @cf model segments for exact selections", () => {
|
||||
const resolved = resolveModelSelectionForCommand({
|
||||
command: "/model openai/@cf/openai/gpt-oss-20b",
|
||||
allowedModelKeys: new Set(["openai/@cf/openai/gpt-oss-20b"]),
|
||||
allowedModelCatalog: [],
|
||||
});
|
||||
|
||||
expect(resolved.errorText).toBeUndefined();
|
||||
expect(resolved.modelSelection).toEqual({
|
||||
provider: "openai",
|
||||
model: "@cf/openai/gpt-oss-20b",
|
||||
isDefault: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("handleDirectiveOnly model persist behavior (fixes #1435)", () => {
|
||||
|
||||
Reference in New Issue
Block a user