Repository navigation
Description
Three related failure modes observed on a self-hosted gh-aw deployment (v0.89.x toolchain, Codex engine, custom OpenRouter model slug), all reproducible from current main. Filing together because they compound each other in triage. Two further findings follow as addenda.
1. Silent skip with green run when target: "triggering" has no issue/PR context
actions/setup/js/safe_output_helpers.cjs resolves target: "triggering" for safe outputs (e.g. add-comment) and, when the run is repository_dispatch/workflow_dispatch-based (no issue/PR context), returns shouldFail: false — the message is skipped, the workflow succeeds, and no output is ever posted.
Observed impact (three times in one day on one deployment): a workflow whose mandatory single output was a markered PR comment completed "successfully" without posting anything; the marker (used for downstream dedup) never landed, causing duplicated work on later triggers. The run summary shows only Message 1 (add_comment) skipped — No target context available. One of the three runs reviewed a PR whose head SHA never received its required review comment — with a green check.
Suggestion: when target: "triggering" cannot resolve in the current event context, fail the safe-output step (or at minimum surface a warning annotation and a distinct conclusion state) instead of silently succeeding. Setting target: "*" (explicit number required) is a correct workaround we've adopted, but the default is a footgun.
2. model_not_supported_error category attached to every failure regardless of cause
With a custom OpenRouter model slug (e.g. xiaomi/mimo-v2.6-pro) and OPENAI_BASE_URL pointed at OpenRouter, the Codex CLI logs on every run, successful or not:
WARN codex_models_manager::model_info: Unknown model xiaomi/mimo-v2.6-pro is used. This will use fallback metadata...
awf-reflect: models fetch returned 404 for http://api-proxy:10000/v1/models
Model metadata for `xiaomi/mimo-v2.6-pro` not found. Defaulting to fallback metadata; this can degrade performance and cause issues.
The failure-issue classifier nonetheless emits failure_categories: model_not_supported_error|... on every failed run. In a sample of 15 consecutive failure issues, 15/15 carried model_not_supported_error while 0/15 had a model-configuration root cause (a same-day successful run logs the identical warnings). A further run today failed at transport level and the classifier still emitted Model not supported error: true. This badly misleads triage.
Suggestion: only classify model_not_supported_error when the engine actually refuses to run the model (non-zero model resolution), and/or suppress the category when the run produced agent output. Separately: it would help if the api-proxy /v1/models 404 could fall back to the models: frontmatter metadata (context window etc.) so custom slugs don't permanently run on fallback metadata.
3. Agent image intermittently lacks jq, safeoutputs CLI, python, apply_patch while the harness prompt prescribes them
The generated prompt prescribes the rawfile emission flow jq -n ... --rawfile body ... | safeoutputs add_comment . — but in some runs the agent image has no jq and no safeoutputs on PATH ("command not found"). Agents then fall back to inline-JSON tool calls, which are rejected by the safe-output transport with JSON EOF parse errors on large bodies (err: EOF while parsing a value at line 1 column 1543), exhausting the 2-retry limit. Same-day runs alternate between working and not working (today a 4004-byte comment posted fine on one run while a ~1.5KB body failed EOF on another), suggesting a provisioning race ("Successfully copied 88 safe-outputs files" succeeds in both).
Suggestion: availability-guarantee the tools the generated prompt prescribes (or generate availability-checked fallbacks), and consider streaming/chunked stdin handling in the safe-output transport for large bodies.
Happy to provide more detail or test patches. Thanks for gh-aw — the safe-output allowlist and target: "*" semantics have been excellent to work with.
4. Silent mid-run wedge on MCP calls (addendum)
A Codex-engine run produced output normally for about 2 minutes, then an MCP tool call (search_repositories) started and never returned: the step log simply ends, the process yields nothing for 14 minutes, and Execute Codex CLI fails with no terminal error text. The conclusion classifier reports AI credits rate-limit error: false, Inference access error: false, and no useful category. Suggestion: watchdog/timeout individual MCP calls with a clear classified error (e.g. transport_wedge) instead of a silent step failure.
5. push_to_pull_request_branch explicit target not consumed (addendum)
In a scheduled run (no PR context), a safe output emitted with what the prompt described as an explicit numeric target failed with: push-to-pull-request-branch with target "triggering" requires pull request context. The error names triggering (the configured default), suggesting the handler did not consume the explicit target parameter or the parameter was dropped. Either the explicit-target path for this handler needs wiring (as exists for add-comment), or the error should echo the target the caller actually supplied to make misuse diagnosable.
Activity
pelikhan commentedon Oct 2, 2026
@niebloomj please split.
niebloomj commentedon Oct 2, 2026
Split per review request into 6 focused issues:
Closing this omnibus; the original report above stays for the record.
This split was filed by an AI agent (Codex) on behalf of the user.
niebloomj commentedon Oct 14, 2026
Status follow-up after checking the six split issues:
add-commentnow fails whentarget: triggeringhas no issue or PR context.transport_wedgeclassification.target: triggeringis context-bound and directs scheduled runs to configuretarget: '*'with a PR number. Draft #65065 closed unmerged.model_not_supported_errormatches from custom-model fallback warnings. The PR says frontmatter metadata fallback and broader suppression after agent output remain unaddressed.