diff --git a/v3/@claude-flow/codex/src/migrations/index.ts b/v3/@claude-flow/codex/src/migrations/index.ts index 005edb4100..d1b5b27929 100644 --- a/v3/@claude-flow/codex/src/migrations/index.ts +++ b/v3/@claude-flow/codex/src/migrations/index.ts @@ -251,7 +251,7 @@ function parseSections(content: string, lines: string[]): ParsedSection[] { const line = lines[i]!; const match = sectionRegex.exec(line); - if (match) { + if (match && match[1] && match[2]) { // Save previous section if (currentSection) { currentSection.content = contentLines.join('\n').trim();