Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
kvnloo
force-pushed
the
fix/run-agent-fail-closed-v3
branch
from
October 3, 2026 21:18
2dfa012 to
c77f3b1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fail closed for
opencode run --agent NAMEinstead of silently falling back to the default agent.Exact and case-insensitive primary-agent names resolve. Unknown names and subagents exit with a useful error listing registered primary agents.
Credit / provenance
This is a current-
devrefresh of upstream anomalyco#47091 by @RaviTharuma. Credit for the original diagnosis and fail-closed behavior belongs to them. This downstream refresh keeps the focused resolver/tests while adapting it to the current run-command tree.Current refresh
devon 2026-10-03run.ts, the smallagent-flag.tshelper, and its test changedVerification
The previous focused proof was 4 passing resolver tests. Current upstream CI should revalidate the refreshed head.
github_writes_origin=0— ready to promote when upstream write access is available.