From 268c8f793d5528abb2bd0dca63bf97e126fe94b6 Mon Sep 17 00:00:00 2001 From: rUv Date: Sat, 7 Feb 2026 16:38:12 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T16:38:12Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/codex/src/initializer.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/v3/@claude-flow/codex/src/initializer.ts b/v3/@claude-flow/codex/src/initializer.ts index c648ab4a82..a697417b0c 100644 --- a/v3/@claude-flow/codex/src/initializer.ts +++ b/v3/@claude-flow/codex/src/initializer.ts @@ -139,22 +139,28 @@ export class CodexInitializer { filesCreated.push('.agents/README.md'); } - return { + const result: CodexInitResult = { success: true, filesCreated, skillsGenerated, - warnings: warnings.length > 0 ? warnings : undefined, }; + if (warnings.length > 0) { + result.warnings = warnings; + } + return result; } catch (error) { const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred'; errors.push(errorMessage); - return { + const result: CodexInitResult = { success: false, filesCreated, skillsGenerated, - warnings: warnings.length > 0 ? warnings : undefined, errors, }; + if (warnings.length > 0) { + result.warnings = warnings; + } + return result; } }