Commit graph

908 commits

Author SHA1 Message Date
Dallin Romney
15ea93dae0
feat: add useResponsesApi option to opt out of Responses API (#11809)
* 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
2026-03-25 16:09:46 -07:00
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
Dallin Romney
ce63eae384
feat: make create/read rule tools disabled by default (#10543)
feat: create/read rule tools disabled by default
2026-02-16 12:15:57 -08:00
Dallin Romney
a7a5351b9c
feat: limited MCP App support (#10132)
* feat: MCP apps part 1

* feat: MCP app support part 3

* chore: cleanup PR

* chore: clean up mcp ui app types

* fix: address cubic feedback
2026-02-05 19:07:44 -08:00
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
Aditya Mitra
4c8ab1cad5
Merge pull request #9524 from uinstinct/history-counter
feat: show message counter in history page
2026-02-02 12:13:43 -08:00
uinstinct
0318855b9b add provision to remove a file from ide 2026-01-16 15:42:30 +05:30
uinstinct
b9bcd33cce add supporting files for skill tool 2026-01-15 13:05:03 +05:30
uinstinct
e0753f5be2 simplify tool frontmatter validation 2026-01-06 18:16:45 +05:30
uinstinct
cef4b8ded2 get config dependent tool definitions async 2026-01-06 17:30:19 +05:30
uinstinct
b6eddec2f4 add read skill tool 2025-12-30 12:51:16 +05:30
uinstinct
207469af85 read and inject skills to system message 2025-12-29 20:04:50 +05:30
Kenan Hasanaliyev
14d935ddcb
Merge branch 'continuedev:main' into nes-latest-diff-fix 2025-12-09 13:37:16 -08:00
Nate
da147f9d0a Add comprehensive cost tracking with OpenAI pricing and session usage display 2025-12-05 15:23:21 -08:00
Kenan Hasanaliyev
a2e01a31a4 fix latest user diff tracking 2025-11-30 00:51:54 -08:00
ferenci84
a3b5ee840f persist session-specific mode and chat model selection across tab switches and session loads 2025-11-09 12:23:18 +01:00
Dallin Romney
c858aee559 feat: remove applied rules from chat history and dev data
Co-authored-by: Andrius Grabauskas <agrabauskas@palantir.com>
2025-11-04 12:42:01 -08:00
Aditya Mitra
1c7a816657
feat: remove auto-accept edits setting (#8310)
* feat: automatically accept file edit tools

* remove edit tools from tool policies ui

* remove checking for edit tool in tool policy section

* remove hiding of edit policies

* remove auto accept edit tool diffs

* fix tests

* re-run tests

* re-run tests

---------

Co-authored-by: Nate <sestinj@gmail.com>
2025-10-27 16:21:34 -07:00
ferenci84
5eb9f4a9bf
feat: Integrate OpenAI Responses API to enable GPT-5 features (#7891)
* 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>
2025-10-23 13:54:43 -07:00
Dallin Romney
1d15c7c3df
Merge pull request #8298 from continuedev/pe/read-file-errs
feat: allow file reads outside IDE workspace (w/ permission)
2025-10-20 10:50:38 -07:00
Patrick Erichsen
211ea1f5e9 add processedArgs param 2025-10-17 15:57:03 -07:00
Dallin Romney
649d02201e
Merge pull request #8226 from continuedev/continuebot/con-4401
Fix terminal security check evaluatePolicy type definition
2025-10-17 14:50:03 -07:00
Tomasz Stefaniak
7b9cb65374
Merge pull request #8191 from continuedev/tomasz/con-4203
Background / Async / Remote mode: Kickoff in /agents when you are in the extension
2025-10-16 16:22:09 -07:00
Continue Agent
1f4f816423 Fix typo in BrowserSerializedContinueConfig type definition
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
2025-10-14 04:11:33 +00:00
Dallin Romney
2276c4e707 fix: rule source agentFile 2025-10-13 20:08:36 -07:00
Tomasz Stefaniak
2edcd6ae02 feat: background agents 2025-10-09 12:42:43 -07:00
continue[bot]
9164448c73
Add apiKey field to mcpServers block schema for Bearer token auth (#8120)
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>
2025-10-08 08:33:30 -07:00
Dallin Romney
2f1ed97e16
fix: separate preprocessed tool args (#8111) 2025-10-07 09:35:50 -07:00
Dallin Romney
8367d33316
Merge pull request #7253 from vldF/mention-action
feat: add actions to reference files, directories and repo maps in IntelliJ Plugin
2025-10-06 12:57:14 -07:00
Nate Sesti
89826f0fea
fix: filter out markdown delimiters from next edit responses (#8056)
* fix: filter out markdown delimiters from next edit responses

* fix: silence noisy console logs (debug now) and capture accept/reject feedback

* fix: console.log -> debug

* fix: console.log -> debug

* fix feedback

* fix: respect Telemetry

* requestId

* fix: lint

* bump
2025-10-01 22:52:18 -07:00
Dallin Romney
caaff16fbd Merge branch 'main' of https://github.com/continuedev/continue into dallin/con-4022-hide-empty-prompts-resources 2025-10-01 09:39:23 -07:00
Dallin Romney
fac7f5c449
feat: tool call args preprocessing (#7992)
* feat: preprocess tool call args

* fix: broken multi edit impl

* fix: preprocess test failures

* fix: preprocessing tests

* fix: tool calls test progress

* fix: tests using mock store

* fix: thunk tests working

* fix: mock ide messenger tests
2025-09-30 18:49:29 -07:00
Dallin Romney
c75262e692 ruleFile -> sourceFile 2025-09-29 16:05:05 -07:00
Dallin Romney
a7e392bdde feat: better settings page and open settings fixes 2025-09-29 15:59:46 -07:00
vldf
f5bee4f502 fix: unify the namings 2025-09-28 13:23:03 +03:00
vldf
8e1288ec0c review: fix 2025-09-28 13:23:02 +03:00
vldf
cbc7ada3a1 feat: add MentionRepoMapInChatAction.kt 2025-09-28 13:23:02 +03:00
vldf
b40cf38e34 feat: allow to reference both directories and files at the same time 2025-09-28 13:23:02 +03:00
Dallin Romney
7b5ae7a50f fix: MCP types and sse/http fallback logic 2025-09-24 15:30:08 -07:00
Dallin Romney
95e4a47f97 fix: mcp types and conversions 2025-09-24 13:32:34 -07:00
Dallin Romney
8b9b72de7b feat: yaml <-> json conversion functions 2025-09-24 11:26:31 -07:00
Nate Sesti
1f6276d418
feat: support for AGENTS.md (#7717)
* feat: support for AGENTS.md

* chore: rules source display name cleanup

* refactor: use constant

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2025-09-22 15:58:45 -07:00
Dallin Romney
238d03f0b6
Merge pull request #7651 from JonZeolla/feat/oauth/redirect_uri
feat(oauth): use asExternalUrl to get the correct callback
2025-09-22 13:32:10 -07:00
Dallin Romney
21aaa0c93c Merge branch 'main' of https://github.com/continuedev/continue into dallin/search-replace-fallbacks-v2 2025-09-20 01:15:50 -07:00
Nate Sesti
b12499cb0e
feat: show remote sessions in cn ls (#7694)
* 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>
2025-09-19 22:44:26 -07:00
Dallin Romney
3799964334 merge: main 2025-09-19 17:41:12 -07:00
Nate Sesti
d78fc99087
feat: add Mercury Apply endpoint support to Inception LLM (#7827)
* 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
2025-09-18 23:44:25 -07:00
Dallin Romney
5e60a13322 feat: continue error for better search and replace errors 2025-09-18 23:35:20 -07:00
uinstinct
ffcb52f7d2 Merge branch 'main' into install-guide-mcp 2025-09-18 11:43:58 +05:30
uinstinct
34f7492516 feat: add installation guides for mcp commands 2025-09-18 11:38:17 +05:30