feat(opencode): support wildcard matching in agent config#18907
feat(opencode): support wildcard matching in agent config#18907Haohao-end wants to merge 1 commit into
Conversation
|
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: Based on my search results, the current PR (18907) for "Add wildcard support for agent config overrides" appears to be the only PR addressing this specific feature. The search results returned:
No duplicate PRs found |
|
I didn't find a direct duplicate PR for wildcard matching in I did notice some related prior work around subagents / task permissions / agent config behavior, but not this specific wildcard matching behavior for If this needs design approval first, I'm happy to convert this to draft or wait for maintainer guidance. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #18898
Type of change
What does this PR do?
This adds wildcard matching for
agentconfig keys.For example, a config like
researcher/*now applies to existing agents such asresearcher/agent-ainstead of being treated as a literal agent name.I kept exact agent config higher priority than wildcard matches, and added handling for wildcard disable/override order so later, more specific config can still restore the original agent correctly.
How did you verify your code works?
I tested locally with:
cd packages/opencode && bun test --timeout 30000 test/agent/agent.test.tscd packages/opencode && bun run typecheckbun turbo typecheckI also added tests for:
Screenshots / recordings
Not applicable.
Checklist