You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dynamic bash tool description breaks Anthropic prompt caching since v1.3.7 (Sonnet extremely slow via GitHub Copilot) #20648
Anthropic models (Claude Sonnet) became extremely slow starting with v1.3.7 when used via the GitHub Copilot provider. GPT models over the same Copilot endpoint are unaffected. Downgrading to v1.3.6 immediately restores fast responses.
Tested by downloading release binaries and comparing identical prompts with Sonnet via GitHub Copilot:
Version
Sonnet Speed
v1.3.5
Fast
v1.3.6
Fast
v1.3.7
Extremely slow
v1.3.10
Extremely slow
v1.3.12
Extremely slow
v1.3.13
Extremely slow
GPT models remain fast across all versions.
Supposition:
In v1.3.4, the bash tool description was deliberately made static to improve cache hit rates (changelog: "Adjust bash tool description to increase cache hit rates between projects").
In v1.3.7, the PowerShell support PR (#16069) reintroduced dynamic, per-project values into the bash tool description.
Environment
Provider: GitHub Copilot
Model: Claude Sonnet 4.6
Fast version: v1.3.6
Slow version: v1.3.7 through v1.3.13
Related
v1.3.4 changelog: "Adjust bash tool description to increase cache hit rates between projects"
Open any project directory and run v1.3.6:
bash
/tmp/opencode-test/v1.3.6/opencode
Send a simple prompt (e.g. "list all files in this directory") → observe fast response
Exit and run v1.3.7 in the same project:
bash
/tmp/opencode-test/v1.3.7/opencode
Send the same prompt → observe significantly slower response
Expected: Both versions respond at similar speed. Actual: v1.3.7+ is dramatically slower with Anthropic models. GPT models remain fast in both versions.
Activity