Repository navigation
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window. Feel free to open a new pull request that follows our guidelines. |
Issue for this PR
Closes #47038
Type of change
What does this PR do?
"opencode run --agent NAME" currently falls back to the default agent when the requested agent is unknown or is a subagent.
Fail closed instead. Exact and case-insensitive primary-agent names still resolve normally.
Based on #47091 by @RaviTharuma.
How did you verify your code works?
"cd packages/opencode && bun test test/cli/run/agent-flag.test.ts"
Tests cover exact matching, case-insensitive matching, unknown agents, and subagent rejection.
Screenshots / recordings
N/A
Checklist