Skip to content
Closed
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
4 changes: 2 additions & 2 deletions .github/workflows/ai-moderator.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/changeset.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/codex-github-remote-mcp-test.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/daily-fact.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/daily-observability-report.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/duplicate-code-detector.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/grumpy-reviewer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/issue-arborist.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/schema-feature-coverage.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/smoke-call-workflow.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/smoke-codex.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/workflow/codex_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mkdir -p "$CODEX_HOME/logs"
"GH_AW_PROMPT": "/tmp/gh-aw/aw-prompts/prompt.txt",
// Tag the step as a GitHub AW agentic execution for discoverability by agents
"GITHUB_AW": "true",
"GH_AW_MCP_CONFIG": "${{ runner.temp }}/gh-aw/mcp-config/config.toml",
"GH_AW_MCP_CONFIG": "/tmp/gh-aw/mcp-config/config.toml",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source code change in codex_engine.go is the right place to fix this — all the .lock.yml regenerations flow from here. Clean and consistent fix across all workflow files.

// Keep Codex runtime state in /tmp/gh-aw because ${RUNNER_TEMP}/gh-aw is
// mounted read-only inside the AWF chroot sandbox.
"CODEX_HOME": "/tmp/gh-aw/mcp-config",
Expand Down
4 changes: 2 additions & 2 deletions pkg/workflow/codex_engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestCodexEngineExecutionIncludesGitHubAWPrompt(t *testing.T) {
if strings.Contains(stepContent, "GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt") {
foundPromptEnv = true
}
if strings.Contains(stepContent, "GH_AW_MCP_CONFIG: ${{ runner.temp }}/gh-aw/mcp-config/config.toml") {
if strings.Contains(stepContent, "GH_AW_MCP_CONFIG: /tmp/gh-aw/mcp-config/config.toml") {
foundMCPConfigEnv = true
}
}
Expand Down Expand Up @@ -337,7 +337,7 @@ func TestCodexEngineRenderMCPConfigOpenAIProxyProvider(t *testing.T) {
"name = \"OpenAI AWF proxy\"",
fmt.Sprintf("base_url = \"http://%s:%d\"", constants.AWFAPIProxyContainerIP, constants.ClaudeLLMGatewayPort),
"env_key = \"OPENAI_API_KEY\"",
"supports_websockets = false",
"support_websockets = false",
}

for _, expected := range expectedLines {
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflow/codex_mcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (e *CodexEngine) renderOpenAIProxyProviderToml(yaml *strings.Builder, inden
yaml.WriteString(indent + "name = \"" + codexOpenAIProxyProviderName + "\"\n")
yaml.WriteString(indent + "base_url = \"" + e.getOpenAIProxyProviderBaseURL() + "\"\n")
yaml.WriteString(indent + "env_key = \"OPENAI_API_KEY\"\n")
yaml.WriteString(indent + "supports_websockets = false\n")
yaml.WriteString(indent + "support_websockets = false\n")
}

func (e *CodexEngine) getOpenAIProxyProviderBaseURL() string {
Expand Down
Loading