continue-custom/core/config
shanevcantwell d80845c403
feat: add tool prompt override support in .continuerc.json (#9314)
* feat: add tool prompt overrides support in YAML model config

Adds per-model tool prompt overrides under chatOptions in YAML config:

```yaml
models:
  - name: my-model
    chatOptions:
      toolPromptOverrides:
        run_terminal_command:
          description: "Custom description"
        view_diff:
          disabled: true
```

This replaces the JSON-only implementation with YAML-only support as
requested by maintainers. The JSON implementation is preserved on the
`feature/tool-prompt-overrides-json` branch for reference.

Changes:
- Add toolOverrideSchema to chatOptionsSchema (packages/config-yaml)
- Add ToolOverride interface and toolPromptOverrides to LLMOptions (core)
- Store and apply overrides in BaseLLM.streamChat()
- Add applyToolOverrides utility with comprehensive tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(cli): add tool prompt overrides support for CLI parity

Apply toolPromptOverrides from YAML model config in CLI,
ensuring feature parity with VS Code extension.

- Add applyChatCompletionToolOverrides helper for CLI tool format
- Apply overrides in streamChatResponse before LLM calls
- Support description changes and disabling tools
- Add unit tests for override logic

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: package lock update

* ci: retrigger after hub 502

* refactor: rename toolPromptOverrides to toolOverrides

- Rename property across core, config-yaml, and CLI
- Consolidate ToolOverride type to extend ToolOverrideConfig from
  config-yaml instead of duplicating 7 fields
- Inline record-to-array conversion to match file patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: retrigger CI (clean run)

* chore: revert gui package-lock to main

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 21:55:21 -08: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 get config dependent tool definitions async 2026-01-06 17:30:19 +05:30
workspace chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
yaml feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
ConfigHandler.ts Filter out .md files when loading agent configs 2026-01-14 22:16:59 +00: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 lint 2026-01-07 20:24:42 +05:30
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