-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
Description
When using the SDK, session.prompt({ tools: { question: true } }) does not expose the tool to the model if the selected agent has permission: {}. I believe this is true for any permission that is denied by the agent
Plugins
none
OpenCode version
1.2.24
Steps to reproduce
- Configure an agent like this:
{
"agent": {
"repro": {
"mode": "primary",
"model": "anthropic/claude-sonnet-4-5-20250929",
"permission": {}
}
}
}- Create a session through the SDK
- Call
session.prompt()with:
{
sessionID,
agent: "repro",
tools: { question: true },
parts: [
{ type: "text", text: "do you have a question tool?" }
]
}- Observe the model response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)