Merge pull request #1432 from kaitranntt/codex/fix-ccsxp-argument-parsing-bug

fix: stop ccsxp model alias parsing at option terminator
This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-30 16:01:55 -04:00
commit 5ac0e808b4
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') {