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
Per-agent model configuration has no effect when using ACP #46311
Expected behavior
ACP prompt routing should match CLI behavior in terms of per-agent models taking precedence over the session default.
Actural behavior
The ACP prompt handler always passes the session-level model as input.model to session.prompt(). This short-circuits the fallback chain in prompt.ts, so ag.model is never reached.
loadDirectorySnapshot in service.ts strips agent models when building the mode list, mapping other agent fields but omitting model. Meanwhile the CLI path in directory.ts correctly includes the model spread.
If your issue adds new detail (e.g. the loadDirectorySnapshot stripping agent models, or the specific CLI-vs-ACP divergence in directory.ts vs service.ts), that context is still valuable to include in the existing issues.
Thanks for the detailed report. This is about the ACP integration in OpenCode v1 (opencode-ai 1.18.25), which now only gets critical fixes, so it won't be fixed there. v2 (@opencode/cli) has a rewritten ACP integration, and the service.ts / prompt.ts code paths you traced aren't used there anymore. Per-agent model handling on v2 is tracked in #55727. If you still see per-agent models ignored over ACP on v2, comment with your version and steps and we'll reopen.
Activity
github-actions commentedon Aug 30, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue adds new detail (e.g. the
loadDirectorySnapshotstripping agent models, or the specific CLI-vs-ACP divergence indirectory.tsvsservice.ts), that context is still valuable to include in the existing issues.neriousy commentedon Oct 20, 2026
Thanks for the detailed report. This is about the ACP integration in OpenCode v1 (
opencode-ai1.18.25), which now only gets critical fixes, so it won't be fixed there. v2 (@opencode/cli) has a rewritten ACP integration, and theservice.ts/prompt.tscode paths you traced aren't used there anymore. Per-agent model handling on v2 is tracked in #55727. If you still see per-agent models ignored over ACP on v2, comment with your version and steps and we'll reopen.