* feat: add `useResponsesApi` option to allow opting out of OpenAI Responses API
Add a `useResponsesApi` config option that, when set to false, forces
o-series and gpt-5 models to use /chat/completions instead of /responses.
This helps users whose organizations are not verified avoid "organization
must be verified" errors related to reasoning summaries and streaming.
The option gates both code paths where the Responses API is selected:
- `canUseOpenAIResponses()` in BaseLLM (native path)
- `shouldUseResponsesEndpoint()` in the OpenAI adapter
Closes#11772
Related: #8209, #7129
* feat: suggest `useResponsesApi: false` in org verification error messages
Update error detection to also catch "organization must be verified to
stream" errors (in addition to reasoning summaries), and update the
error message to suggest adding `useResponsesApi: false` to model config
as a workaround.
* fix: improve org verification error message copy
* fix: add useResponsesApi to LLMOptions in index.d.ts
The actual type definitions used by tsc are in core/index.d.ts, not in
the string template in config/types.ts.
* fix: also check provider name when detecting org verification errors
The error message from OpenAI's API doesn't always contain the word
"openai" — check the provider name from the model config as well.
* feat: detect missing authentication header error and suggest adding apiKey
* fix: handle missing auth error directly in 401 dialog block
The 401 status code handler in StreamError.tsx renders before the
customErrorMessage check, so detect the missing authentication error
inline within the 401 block.
* Revert "fix: handle missing auth error directly in 401 dialog block"
This reverts commit 0053957d2df7c64ddea2279982f5e07e2cee1020.
* style: fix prettier formatting in index.d.ts
* style: revert unrelated prettier reformatting in index.d.ts
* fix: handle undefined providerName in error analysis
* fix: use YAML-style formatting in useResponsesApi suggestion
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>
* 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>
* Thinking for deepseek and openrouter providers
* fix: messages array is modified as a side-effect
* fix formatting and type errors
* Add type annotations for reasoning fields in OpenAI chunk processing
* Handle thinking blocks for openaiAdapter
* Optimize chat stream processing by replacing string concatenation with array operations for better performance
* Add support for Claude reasoning blocks with signature handling
* Add reasoning_details support for thinking messages in OpenAI type converters
* Optionally preserve reasoning, improve the handling of reasoning_details
* Remove debug console logs from reasoning details merging
* Remove reasoning content for Claude models when no signature is present in reasoning details
* remove forceStreamChat flag and simplify streaming logic in BaseLLM
* remove preserveReasoning option and always preserve reasoning blocks
* Responses API: apply net changes from 95f076b74^..8bd85e2fd as one commit on responses_api_2 to bring in Responses API work and merged updates
* add support for provider-specific reasoning fields in LLM implementations
---------
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
The type incorrectly referenced 'evaluatePolicy' instead of 'evaluateToolCallPolicy',
which is the actual field name in the Tool interface. This prevented TypeScript from
properly enforcing the omission of this field when serializing tools for the browser.
Fixes CON-4401
Generated with [Continue](https://continue.dev)
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: nate@continue.dev
Add apiKey field to mcpServers schema and implement Bearer token auth
- Add apiKey field to sseOrHttpMcpServerSchema in packages/config-yaml
- Update MCPConnection.ts to merge apiKey as Bearer token in Authorization header
- Update CLI MCPService to merge apiKey as Bearer token in Authorization header
- Add apiKey to InternalSseMcpOptions and InternalStreamableHttpMcpOptions types
- Update yamlToContinueConfig converter to pass through apiKey field
Fixes CON-4281
Generated with [Continue](https://continue.dev)
Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: nate <nate@continue.dev>
* feat: /title slash command
* fix: /title slash command should be able to be submitted with text
* test: add tests for last commit's changes
* fix: EOF in action.yml
* feat: list remote sessions in cn ls and /resume
* feat: load more sessions and make them scrollable
* chore: format
* improv: debug script builds automatically for cli
* feat: load remote session
* fix: wrap entrypoint in function so it doesn't run at import-time
* feat: /diff and /apply slash commands for cn remote
* feat: full screen diff viewer
* feat: status message for /apply slash command
* Update extensions/cli/src/ui/UserInput.tsx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* fix: remove console.logs
* Potential fix for code scanning alert no. 60: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Potential fix for code scanning alert no. 61: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* fix: build.js
* feat: list remote sessions in history of extensions
* feat: open remote agents in browser
* chore: fix tests and lint
* fix: import Text
* fix: small bug
* fix: address feedback
* fix: adjust extension gui for compatibility with cli session history
* feat: load session history from remote
* feat: open remote session in browser
* fix: tests, linting, formatting
* fix: don't use any
* address nitpicks
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* feat: add Mercury Apply endpoint support to Inception LLM
* refactor: begin to clean up the apply / streamDiff code
* fix: undo commenting out of instant apply
* fix: use underlyingProviderName