continue-custom/core/tools/systemMessageTools
shanevcantwell fe0661e386 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-19 17:00:34 -07:00
..
toolCodeblocks fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-19 17:00:34 -07:00
buildToolsSystemMessage.ts Fix duplicate predefined tools in dynamic tools system message (#11101) 2026-03-09 23:42:02 -07:00
convertSystemTools.ts feat: plug and play system message tool frameworks 2025-07-29 15:22:55 -07:00
detectToolCallStart.ts feat: plug and play system message tool frameworks 2025-07-29 15:22:55 -07:00
interceptSystemToolCalls.ts feat: plug and play system message tool frameworks 2025-07-29 15:22:55 -07:00
systemToolUtils.ts fix: system tool calling bugs and flesh out tests 2025-07-20 13:52:25 +02:00
systemToolUtils.vitest.ts feat: system message tools 2025-07-20 10:52:22 +02:00
types.ts feat: plug and play system message tool frameworks 2025-07-29 15:22:55 -07:00