Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions pkg/workflow/codex_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ func (e *CodexEngine) GetInstallationSteps(workflowData *WorkflowData) []GitHubA
" - name: Install Codex",
fmt.Sprintf(" run: %s", installCmd),
},
{
" - name: Authenticate with Codex",
" run: codex login --api-key \"${{ secrets.OPENAI_API_KEY }}\"",
},
}
}

Expand Down Expand Up @@ -111,6 +107,15 @@ export CODEX_HOME=/tmp/mcp-config
# Create log directory outside git repo
mkdir -p /tmp/aw-logs

# where is Codex
which codex

# Check Codex version
codex --version

# Authenticate with Codex
codex login --api-key "${{ secrets.OPENAI_API_KEY }}"

# Run codex with log capture - pipefail ensures codex exit code is preserved
codex exec %s%s--full-auto "$INSTRUCTION" 2>&1 | tee %s`, modelParam, searchParam, logFile)

Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/codex_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestCodexEngine(t *testing.T) {

// Test installation steps
steps := engine.GetInstallationSteps(&WorkflowData{})
expectedStepCount := 3 // Setup Node.js, Install Codex, and Authenticate with Codex
expectedStepCount := 2 // Setup Node.js, Install Codex
if len(steps) != expectedStepCount {
t.Errorf("Expected %d installation steps, got %d", expectedStepCount, len(steps))
}
Expand Down