fix: stop ccsxp model alias parsing at option terminator

This commit is contained in:
Kai (Tam Nhu) Tran authored and Tam Nhu Tran committed 2026-05-30 15:20:08 -04:00
1 parent 62a4d44b58
commit 5776e9c3b1
2 files changed
+33 -1

No files matched your search

+4
View File
@@ -143,6 +143,10 @@ function normalizeCcsxpCodexModelFlagAliases(args: string[]): {
for (let index = 0; index < normalizedArgs.length; index += 1) {
const arg = normalizedArgs[index];
if (arg === '--') {
break;
}
if (arg === '-m' || arg === '--model') {
const nextValue = normalizedArgs[index + 1];
if (typeof nextValue === 'string') {