diff --git a/v3/@claude-flow/codex/src/migrations/index.ts b/v3/@claude-flow/codex/src/migrations/index.ts index f49bc6a5b6..11fdb0fa59 100644 --- a/v3/@claude-flow/codex/src/migrations/index.ts +++ b/v3/@claude-flow/codex/src/migrations/index.ts @@ -482,7 +482,7 @@ function extractSettings(content: string, sections: ParsedSection[]): ParsedSett // Look for model specification const modelMatch = content.match(/model[:\s]+["']?([^"'\n]+)["']?/i); - if (modelMatch) { + if (modelMatch && modelMatch[1]) { settings.model = modelMatch[1].trim(); }