continue-custom/extensions/cli/src/stream
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
..
handleToolCalls.test.ts fix: eslint import unresolved 2026-01-16 18:11:39 -08:00
handleToolCalls.ts fix: duplicate tool messages 2026-01-16 17:49:21 -08:00
messageQueue.test.ts fix: inline --rule improvements and fix msg queue behavior (#7939) 2025-09-23 23:39:59 -07:00
messageQueue.ts fix: inline --rule improvements and fix msg queue behavior (#7939) 2025-09-23 23:39:59 -07:00
streamChatResponse.autoCompaction.test.ts test: fix comapction tests etc 2026-01-21 18:31:02 -08:00
streamChatResponse.autoCompaction.ts test: fix comapction tests etc 2026-01-21 18:31:02 -08:00
streamChatResponse.autoContinuation.test.ts test: fix comapction tests etc 2026-01-21 18:31:02 -08:00
streamChatResponse.compactionHelpers.ts feat: refined cli bash tool truncation 2026-01-09 15:13:22 -08:00
streamChatResponse.getAllTools.test.ts fix: remove search from expected tools since rg install not gauranteed 2025-11-18 16:45:20 -08:00
streamChatResponse.helpers.ts feat: proportional output truncation for read and bash 2026-01-21 17:37:17 -08:00
streamChatResponse.modeSwitch.test.ts fix(cli): exclude ask first tools in headless (#8416) 2025-10-23 19:12:47 -07:00
streamChatResponse.systemMessage.test.ts Add blank line between parent and sibling imports 2025-12-01 22:42:38 +00:00
streamChatResponse.test.ts Fix TypeScript errors in streamChatResponse tests 2025-12-01 22:34:19 +00:00
streamChatResponse.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
streamChatResponse.types.ts fix: types, imports, and formatting 2025-08-27 21:32:23 -07:00