Implement virtual tools feature to allow GitHub Copilot models to run with more than 128 tools
Currently, GitHub Copilot models are restricted to a maximum of 128 tools configured. If you have more than 128 tools configured in OpenCode, then the API calls fail. To overcome this limitation, the VSCode team implemented a virtual tool concept that automatically activates them on demand. This is a proposal to implement something similar in OpenCode so that configuring more than 128 tools in OpenCode with GitHub Copilot does not fail with an API call.
Reference from VSCode Team -
- https://www.youtube.com/watch?v=qHl_KBUyid0
- https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_agent-mode-tools
Facing this issue as well:
#4909
Is there a fix planned or a work around available?
EDIT: check this: https://github.com/sst/opencode/issues/4909#issuecomment-3591911277
This isn't a super high priority for us currently but we will prolly have something for that eventually.
I suppose for the time being we can implement some warning or error toast specifically for copilot
This feature will really help if you can add a virtual tool for copilot!!