continue-custom/core
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
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
__mocks__/@continuedev/fetch llm pre-fetch tests: nested dependency mocks for continue fetch 2025-06-06 17:39:28 -07:00
autocomplete chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
codeRenderer feat: next edit char-level diff (#7776) 2025-09-19 00:25:33 -07:00
commands chore: mcp 1.24.0 (#8974) 2025-12-04 12:58:28 -08:00
config fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-19 17:00:34 -07:00
context chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
continueServer chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
control-plane chore: remove remaining PostHog and Sentry references 2026-03-19 15:34:22 -07:00
data fix types 2025-08-13 22:12:33 -07:00
deploy clean up URLs 2024-10-15 12:00:05 -07:00
diff refactor: remove unused code 2025-07-28 17:10:45 -07:00
edit chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
indexing chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
llm refactor: unify AbortError detection with isAbortError utility (#10551) 2026-03-19 17:00:29 -07:00
nextEdit chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
promptFiles fix: show md rules and prompts in respective sections (#8178) 2025-10-27 15:25:03 -07:00
protocol chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
tag-qry 🚧 WIP on indexing for code context provider 2024-03-03 20:22:08 -05:00
test Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
tools fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-19 17:00:34 -07:00
util refactor: unify AbortError detection with isAbortError utility (#10551) 2026-03-19 17:00:29 -07:00
utils prettier and code cleanup 2025-07-13 14:47:54 -07:00
vendor fix: add security check to createNewFile tool (CWE-22) (#11238) 2026-03-09 12:27:47 -07:00
.eslintrc.json chore: ignore max-lines-per-function in tests (#6825) 2025-07-28 09:04:13 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
.npmignore 🔥 add tests to .npmignore 2024-03-19 12:54:17 -07:00
core.ts chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
index.d.ts fix: harden system message tools and wire toolOverrides to system message path (#10485) 2026-03-19 17:00:34 -07:00
jest.config.js Reapply "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 14:15:49 -07:00
package-lock.json chore: remove remaining PostHog and Sentry references 2026-03-19 15:34:22 -07:00
package.json chore: remove all PostHog and Sentry telemetry collection 2026-03-19 15:15:26 -07:00
rules.md new rules 2025-06-20 16:06:03 -07:00
tsconfig.json feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
tsconfig.npm.json ⏩ Preview to main (#1299) 2024-05-16 22:15:44 -07:00
vitest.config.ts test only .vitest.ts files 2025-06-17 10:28:02 +05:30