Repository navigation
Support OpenCode model rosters and empty-run continuation - #78131
Conversation
|
@copilot enable opencode in a few model agentic workflows in the repo |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
@copilot migrate a few more AWs to using open code |
There was a problem hiding this comment.
🟡 Changes recommended
The turn-limit gate can permit additional model steps after the budget is exhausted and still report success, leaving a critical budget-enforcement issue unresolved.
1 open issue
What changed in this PR
This PR extends gh-aw’s shared OpenCode engine to support per-agent model selection and bounded continuation of runs that finish without safe output, addressing #78126.
Changes:
- Adds a trimmed, deduplicated model roster through
GH_AW_OPENCODE_MODELS, retaining the lead model and existing proxy policy. - Adds up to two session continuations for eligible empty runs, with shared event handling.
- Documents the behavior, adds unit coverage, and refreshes three generated workflows.
| File | Description |
|---|---|
actions/setup/js/opencode_workflow.test.cjs |
Tests roster parsing, continuation limits, and skip conditions. |
.github/workflows/smoke-opencode.lock.yml |
Incorporates the updated harness and workflow hashes. |
.github/workflows/shared/opencode.md |
Implements and documents model rosters and session continuation. |
.github/workflows/engine-conformance-opencode.lock.yml |
Incorporates the harness changes into conformance testing. |
.github/workflows/daily-security-red-team.lock.yml |
Incorporates the updated harness and associated hashes. |
Review effort: Balanced (dynamic)
| stdin: prompt, | ||
| }); | ||
| for (let nudge = 1; nudge <= 2; nudge++) { | ||
| if (result.exitCode !== 0 || maxTurnsHit || hasSafeOutputs() || !sessionID) break; |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Migrated three model-driven workflows to the shared OpenCode engine and regenerated their locks in
Added three more workflows to the shared OpenCode engine, preserving their configured models/providers; locks are regenerated in |
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "46e8e3d28b15f5f0ccc2f25eeeeff5443bb182c7",
"kind": "requested",
"schema_version": "1",
"state": "1aead506618e1d5d657a16fea7c4be7d20f36e780315bd39b40249727ffae949",
"work": [
"7c00201c9317af950d08d005ea009283deddd52fd7c797bd0591918e4f9e4cdd"
],
"workflow": "pr-sous-chef"
}
|
…agent-rosters Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |

OpenCode configured only the lead model, preventing per-agent model selection. Clean runs that ended without safe output also completed successfully without delivering anything.
GH_AW_OPENCODE_MODELS, trimming and deduplicating entries while always including the lead model. All roster models use the existing proxy and provider policy.