Commit graph

14 commits

Author SHA1 Message Date
shanevcantwell
df8ef7ad56
fix: harden system message tools and wire toolOverrides to system message path (#10485)
fix: harden system message tools instructions and wire toolOverrides to system message path

The system message tools path (used when models don't support native tool
calling) had two issues:

1. Weak format instructions - the prefix/suffix used vague prose that local
   models often ignored, reverting to XML or JSON tool call formats from
   their training priors. Replaced with explicit numbered rules that
   prohibit alternative formats.

2. toolOverrides silently ignored - applyToolOverrides() existed and ran on
   the native tools path (in BaseLLM.streamChat), but was never called on
   the system message path. Config YAML toolOverrides for disabled and
   description had no effect when tools were injected via system message.

Fixed by:
- Strengthening systemMessagePrefix/Suffix in toolCodeblocks framework
- Adding toolOverrides to ModelDescription interface and serialization
- Calling applyToolOverrides() in streamNormalInput before both paths

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 12:52:05 -07:00
MumuTW
e63c5f8994
Fix duplicate predefined tools in dynamic tools system message (#11101)
Fix duplicate predefined tools in dynamic system-message section
2026-03-09 23:42:02 -07:00
Dallin Romney
031179ecf7 fix: remove blank test file 2025-07-29 15:31:57 -07:00
Dallin Romney
af1b6b1bc4 feat: plug and play system message tool frameworks 2025-07-29 15:22:55 -07:00
Dallin Romney
3adf4b62a7 chore: revert duplicate fix logic for search and replace array args 2025-07-24 19:12:21 +07:00
Dallin Romney
d9e60cffc1 Merge branch 'dallin/system-message-tools' of https://github.com/continuedev/continue into dallin/system-message-tools 2025-07-24 19:07:00 +07:00
Dallin Romney
ec9d3157bb fix: system message tools array args for search and replace tool 2025-07-24 19:06:42 +07:00
Nate
74dd75a159 fix edit tool by adjusting prompt to say "diffs" instead of "diff" 2025-07-23 22:29:18 -07:00
Dallin Romney
7a01cebd1d disallow empty text parts 2025-07-22 08:20:10 +02:00
Dallin Romney
3bd270a41e fix: remove it.only test marker 2025-07-20 14:28:12 +02:00
Dallin Romney
567d917367 fix: system tool calling bugs and flesh out tests 2025-07-20 13:52:25 +02:00
Dallin Romney
400013333d chore: system message tools: cleanup and restore edit test 2025-07-20 12:42:03 +02:00
Dallin Romney
9511eb5fa9 fix: test failures - was doing a chat test in agent mode 2025-07-20 12:19:42 +02:00
Dallin Romney
b708c355a6 feat: system message tools 2025-07-20 10:52:22 +02:00