continue-custom/core/config
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
..
json fix: move rc loading to separate file, fix core imports issue 2025-07-21 17:31:35 +02:00
markdown support relative path for workspace dirs 2026-01-15 19:00:09 +05:30
profile fix: pass pre-read content to bypass fs.existsSync for WSL agent configs (#10451) 2026-03-10 00:21:47 -07:00
workspace chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
yaml Merge pull request #9716 from sarthakNITT/#9548 2026-02-03 15:46:05 -08:00
ConfigHandler.ts fix: load config in project with no dirs (#10737) 2026-03-13 12:14:22 -07:00
ConfigHandler.vitest.ts feat: Respect Org Policies (#7087) 2025-08-11 19:20:07 -07:00
createNewAssistantFile.ts Rename "agent" terminology to "config" throughout the codebase (#8229) 2025-10-13 22:25:42 -07:00
default.ts Rename "agent" terminology to "config" throughout the codebase (#8229) 2025-10-13 22:25:42 -07:00
getWorkspaceContinueRuleDotFiles.ts ruleFile -> sourceFile 2025-09-29 16:05:05 -07:00
load.ts fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-13 12:52:05 -07:00
loadContextProviders.ts fix: unknown context provider file 2025-08-21 18:04:18 -07:00
loadContextProviders.vitest.ts fix: exclude problems and terminal on jetbrains 2025-08-18 18:22:13 -07:00
loadLocalAssistants.ts feat: better settings page and open settings fixes 2025-09-29 15:59:46 -07:00
loadLocalAssistants.vitest.ts fix: HOTFIX local assistant loading (#7354) 2025-08-25 11:52:07 -07:00
migrateSharedConfig.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
onboarding.ts switch model order 2025-06-08 18:52:19 -07:00
ProfileLifecycleManager.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
selectedModels.ts feat: remove models property 2025-04-08 19:28:48 -07:00
sharedConfig.ts feat: remove auto-accept edits setting (#8310) 2025-10-27 16:21:34 -07:00
types.ts fix: filter out markdown delimiters from next edit responses (#8056) 2025-10-01 22:52:18 -07:00
usesFreeTrialApiKey.ts fix: only show free trial dialog for freetrial secrettype 2025-10-14 19:29:07 +05:30
usesFreeTrialApiKey.vitest.ts fix more lints 2026-01-07 20:40:03 +05:30
util.ts fix: remove add model system message 2025-08-08 11:42:06 +05:30
util.vitest.ts rename to vitest 2025-06-23 18:46:59 +05:30
validation.ts feat: insert prompt into input on click 2025-03-20 14:45:57 -07:00