mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
6189181c4e
On each primary request, compare the tool calls in the outgoing history with the tools the request actually offers. When calls made by a different model name tools this model does not have, add one reminder before the prompt and persist it as a synthetic message, recording which tools it named so later requests and later switches to models with the same tools do not repeat it. Runs after the patch plugin so it sees the editing tools left for this model.