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
9 changes: 8 additions & 1 deletion tasks/github-pr-reviewer/workflow/codex-harness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@ payloads:
- source: ${REVIEW_SKILL}
destination: /sandbox/review/skills/pr-review/SKILL.md
- content: |
openai_base_url = "https://inference.local/v1"
model = "${CODEX_MODEL}"
model_provider = "openshell"
model_reasoning_effort = "xhigh"
approval_policy = "never"
sandbox_mode = "danger-full-access"

[model_providers.openshell]
name = "OpenShell inference"
base_url = "https://inference.local/v1"
wire_api = "responses"
supports_websockets = false
requires_openai_auth = false
destination: /sandbox/.codex/config.toml
outputs:
- source: /sandbox/review/codex-final.txt
Expand Down
2 changes: 1 addition & 1 deletion test/pr_review_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func TestGitHubAppTokenIsHostOnly(t *testing.T) {
t.Fatal("review workflow passes the GitHub token into the sandbox configuration")
}
codex := string(mustRead(t, "../tasks/github-pr-reviewer/workflow/codex-harness.yaml"))
for _, required := range []string{"type: codex", "CODEX_INFERENCE_PROVIDER", "CODEX_MODEL", "${CODEX_MODEL}", "model_reasoning_effort = \"xhigh\"", "approval_policy = \"never\"", "sandbox_mode = \"danger-full-access\"", "inference.local/v1", "codex-final.txt"} {
for _, required := range []string{"type: codex", "CODEX_INFERENCE_PROVIDER", "CODEX_MODEL", "${CODEX_MODEL}", "model_provider = \"openshell\"", "model_reasoning_effort = \"xhigh\"", "approval_policy = \"never\"", "sandbox_mode = \"danger-full-access\"", "base_url = \"https://inference.local/v1\"", "supports_websockets = false", "codex-final.txt"} {
if !strings.Contains(codex, required) {
t.Fatalf("Codex workflow is missing %s", required)
}
Expand Down
Loading