mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): ignore empty entries in --models
A trailing comma in --models produced an empty pattern, which matched every model by substring and added an extra model to the model cycle. fixes #10334
This commit is contained in:
parent
b271b0a524
commit
9b3c19da5c
3 changed files with 11 additions and 1 deletions
|
|
@ -145,6 +145,12 @@ describe("parseArgs", () => {
|
|||
const result = parseArgs(["--models", "gpt-4o,claude-sonnet,gemini-pro"]);
|
||||
expect(result.models).toEqual(["gpt-4o", "claude-sonnet", "gemini-pro"]);
|
||||
});
|
||||
|
||||
// Issue #10334
|
||||
test("ignores empty entries in --models", () => {
|
||||
const result = parseArgs(["--models", "gpt-4o, ,claude-sonnet,"]);
|
||||
expect(result.models).toEqual(["gpt-4o", "claude-sonnet"]);
|
||||
});
|
||||
});
|
||||
|
||||
// Issue #9045
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue