| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The question tool was still available to the model during `opencode run` even though session permissions denied it. This caused the run to hang indefinitely waiting for a response that would never come. Fixed by passing session permissions to LLM.resolveTools so tools with deny rules are properly filtered out before being sent to the model.
|
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. |
Sorry, something went wrong.
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
Sorry, something went wrong.
|
Believe this has been addressed elsewhere, thanks for opening pr tho. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #11899
Summary
Problem
When running opencode run, if the model tried to use the question tool, it would hang indefinitely because:
Solution
Updated LLM.resolveTools to merge both agent and session permissions when determining which tools should be disabled.
Changes
Verification
Tested locally with bun run dev run "ask me a question using the question tool" - the model no longer attempts to use the question tool.