Commit graph

6001 commits

Author SHA1 Message Date
e0577e8a6b chore: package as distinct extension ID, document Full Access mode
Some checks are pending
Main Branch Build / republish-pr-artifacts (Linux) (push) Waiting to run
Main Branch Build / republish-pr-artifacts (macOS) (push) Waiting to run
PR Checks / track-rerun (push) Waiting to run
PR Checks / prettier-check (push) Waiting to run
PR Checks / core-checks (push) Waiting to run
PR Checks / gui-checks (push) Waiting to run
PR Checks / binary-checks (push) Waiting to run
PR Checks / vscode-checks (push) Waiting to run
PR Checks / get-packages-matrix (push) Waiting to run
PR Checks / packages-checks (push) Blocked by required conditions
PR Checks / vscode-get-test-file-matrix (push) Waiting to run
PR Checks / vscode-package-extension-linux (push) Waiting to run
PR Checks / unknown () (push) Blocked by required conditions
PR Checks / jetbrains-tests (push) Waiting to run
PR Checks / require-all-checks-to-pass (push) Blocked by required conditions
Submit Gradle Dependency Graph For Dependabot / dependency-submission (push) Waiting to run
Renamed extensions/vscode/package.json's name to
"continue-full-access" (was "continue") so this build installs as
Continue.continue-full-access, a separate VS Code extension entry from
the Marketplace Continue.continue -- prevents a Marketplace auto-update
from silently overwriting this custom build. Fixed the two places that
hardcoded the old "Continue.continue" self-reference
(util/vscode.ts's getExtensionUri, RecentlyVisitedRangesService's
output-channel filter).

Added FULL_ACCESS_MODE.md documenting what the existing Full Access
mode (b275cafed) actually does, its safety trade-off (bypasses the
terminal-security dynamic checker entirely -- an explicit, informed
choice, not an oversight), and build/install steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 03:17:36 +03:00
b275cafed9 feat(gui): add full access auto-approve mode
Some checks failed
Main Branch Build / republish-pr-artifacts (Linux) (push) Has been cancelled
Main Branch Build / republish-pr-artifacts (macOS) (push) Has been cancelled
PR Checks / track-rerun (push) Has been cancelled
PR Checks / prettier-check (push) Has been cancelled
PR Checks / core-checks (push) Has been cancelled
PR Checks / gui-checks (push) Has been cancelled
PR Checks / binary-checks (push) Has been cancelled
PR Checks / vscode-checks (push) Has been cancelled
PR Checks / get-packages-matrix (push) Has been cancelled
PR Checks / vscode-get-test-file-matrix (push) Has been cancelled
PR Checks / vscode-package-extension-linux (push) Has been cancelled
PR Checks / jetbrains-tests (push) Has been cancelled
Submit Gradle Dependency Graph For Dependabot / dependency-submission (push) Has been cancelled
PR Checks / packages-checks (push) Has been cancelled
PR Checks / unknown () (push) Has been cancelled
PR Checks / require-all-checks-to-pass (push) Has been cancelled
2026-07-30 13:16:35 +03:00
Nate Sesti
d3f60ba9dd
fix(cli): use explicit model definitions in default config instead of Hub slugs (#12804)
* fix(cli): use explicit model definitions in default config instead of Hub slugs

The CLI onboarding wrote a default ~/.continue/config.yaml using slug-based
blocks (`uses: anthropic/claude-sonnet-4-6` with `with: { ANTHROPIC_API_KEY }`).
Slug/Hub resolution has been removed, so the CLI errored at runtime with
"Failed to unroll block ... Slug-based package resolution is not supported".

Replace the slug block with explicit Anthropic model definitions (Claude Sonnet
4.6 + Claude Opus 4.6), mirroring core/config/onboarding.ts. Legacy slug-based
anthropic blocks in an existing config are now migrated to explicit defs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(cli): update headless e2e for explicit default model

With the default config now creating an explicit Anthropic model (instead of
an unresolvable slug), the headless run reaches the provider and fails on the
invalid API key rather than failing earlier with "no model specified".

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 14:36:13 -07:00
Nate Sesti
18acf6fc26
test(cli): isolate GlobalContext to fix flaky model-persistence tests (#12639)
* test(cli): isolate GlobalContext to fix flaky model-persistence tests

The model-persistence test files set process.env.CONTINUE_GLOBAL_DIR in
beforeEach to isolate their GlobalContext store, but core/util/paths.ts
resolves CONTINUE_GLOBAL_DIR into a module-level constant at import time,
so those per-test reassignments had no effect. As a result every test file
(across parallel Vitest worker processes) read/wrote the same
globalContext.json on disk, racing each other and intermittently failing
"should clear model selection when set to null".

Add a dedicated first setup file (vitest.global-dir-setup.ts) that creates
a unique temp dir via fs.mkdtemp and sets CONTINUE_GLOBAL_DIR before any
module imports paths.ts, giving each worker process its own isolated
GlobalContext. Wire it in as the first entry in setupFiles and stop
hardcoding the shared /tmp/continue-test dir in vitest.setup.ts.

Co-authored-by: Cursor <cursoragent@cursor.com>

* style(cli): remove blank line in array to fix prettier-check

Pre-existing prettier-check failure on main: a blank line inside the
`screens` array literal in NavigationContext.test.tsx is removed by the
Prettier version CI runs. Drop the blank line so the file is formatted.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: retrigger CI

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 13:32:58 -07:00
Nate Sesti
a80b6a4b90
fix(cli): remove dead login requirement and Login Required UI (#12637)
Hub/WorkOS authentication was already stubbed out so the CLI runs fully
unauthenticated using local config.yaml / API keys / env vars. This removes
the now-dead login code paths that remained:

- Delete unused `login`/`logout` command modules (no longer registered in
  the CLI and not imported anywhere).
- Remove the unreachable "Login Required" TUI screen and its token-prompt
  handlers (handleLoginPrompt / handleLoginTokenSubmit / useLoginHandlers),
  which were never triggered now that login is impossible.
- Drop the dead "login" navigation screen and update NavigationContext tests
  to use other screens.

No auth gating remains on startup, headless, TUI, or standard mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 12:47:28 -07:00
Nate Sesti
10639a20f2
Final release cleanup: remove CLI banner & Generate Rule, explicit onboarding/config models, deprecation link (#12634)
* chore: remove CLI-install banner and Generate Rule feature, use explicit onboarding models

- Remove CliInstallBanner component, test, and dismissal localStorage key
- Remove "Generate Rule" button, GenerateRuleDialog, command, and protocol message
- Convert onboarding and new-assistant template off Hub `uses:` slugs to explicit model definitions
- Update deprecation banner export link to https://continue.dev/export

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: bump vscode extension version to 1.3.40

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 09:09:30 -07:00
Nate
68d2702077 fix(ci): sync vscode lockfile, fix core type error, run prettier
- Regenerate extensions/vscode/package-lock.json so `npm ci` is in sync
  (fixes vscode-checks, vscode-get-test-file-matrix,
  vscode-package-extension-linux, build-and-upload-vsix, jetbrains-tests)
- Replace deprecated fs.rmdirSync(..., {recursive}) with fs.rmSync in core
  test global setup (fixes core-checks tsc TS2554)
- Apply prettier formatting to README.md and core test setup files
  (fixes prettier-check)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 18:04:28 -07:00
Nate
c21843805e Merge upstream continuedev/continue main into continue-fork
Resolve conflicts preserving the fork's removals (Hub/Mission Control/
control-plane/continue-proxy/MDM) while integrating upstream changes:
- core/llm/toolSupport.ts(.test.ts): drop reintroduced continue-proxy entry
- core/config/ConfigHandler.ts: keep upstream 'configs' file type + Promise.all,
  use fork's LocalProfileLoader signature (no controlPlaneClient)
- core/core.ts: keep upstream models/fetch handler; drop mdm/setLicenseKey
  handler (control-plane/mdm was removed by the fork)
- core/package-lock.json, binary/package-lock.json: regenerated via npm install

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 16:33:24 -07:00
Dallin Romney
bcd29eb0ec feat: unified dynamic model fetching for all providers 2026-04-05 22:15:28 -07:00
Dallin Romney
d971363a7e
chore: vs code 1.3.39, jetbrains 1.0.68 (#11939) 2026-03-27 15:01:20 -07:00
dependabot[bot]
8f1ebd2c82
chore(deps-dev): bump happy-dom from 20.0.2 to 20.8.9 in /extensions/cli (#11910)
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.0.2 to 20.8.9.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v20.0.2...v20.8.9)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 20.8.9
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-27 13:35:09 -07:00
Patrick Erichsen
8225bff02d Merge remote-tracking branch 'upstream/main'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 10:25:37 -07:00
Dallin Romney
d220a2e370
chore: jb-67-vs-38 (#11916) 2026-03-26 18:20:04 -07:00
Dallin Romney
a067fedfdc
chore: jb-66-vs-37 (#11909) 2026-03-26 16:48:22 -07:00
Patrick Erichsen
0dbc79abee update depreciation banner 2026-03-26 15:42:33 -07:00
Taras Malinovskii
c5490d97ea
fix(intellij): handle square brackets in file paths for autocomplete (#11474)
* fix(intellij): handle square brackets in file paths for autocomplete

Use File.toURI() instead of URI constructor for Windows two-slash
file:// URIs to properly percent-encode special characters like [ ].
Fixes #10978.

* test(intellij): strengthen Windows URI assertions for bracket encoding

Verify that square brackets are percent-encoded and drive letter
and directory structure are preserved in parsed URI path.

* fix(intellij): make Windows bracket test cross-platform

The CI runs on Linux where C: is not a drive letter.
Assert that brackets are encoded and structure is preserved
without platform-specific path assumptions.

* fix: use cross-platform URI constructor instead of File.toURI()

File.toURI() is platform-dependent — on non-Windows hosts it treats
Windows drive paths (e.g. C:/Users/...) as relative paths, producing
corrupted URIs. The multi-arg URI(scheme, host, path, fragment)
constructor is pure RFC 2396 string manipulation and works identically
on all platforms.

Also strengthens the Windows bracket test with exact equality assertions
instead of loose contains/assertFalse checks.

* chore: remove verbose comments for minimal diff

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-26 15:12:38 -07:00
Patrick Erichsen
a6499333b0 Merge remote-tracking branch 'upstream/main' 2026-03-26 14:59:45 -07:00
Dallin Romney
afd5e5e18f
fix: chunk large JCEF messages to prevent JetBrains sidebar freezes (#11899)
* fix: chunk large JCEF messages to prevent JetBrains sidebar freezes

When session data exceeds ~1MB (e.g. long conversations with many context
items), sendToWebview embeds the entire JSON payload in a single
executeJavaScript call. JCEF's JS parser/compiler cannot handle source
strings that large and freezes the IDE.

This adds a chunked sending path: payloads over 1MB are base64-encoded,
split into 512KB chunks sent as individual executeJavaScript calls that
each append to a buffer variable, then a final call decodes and dispatches
the reassembled message via window.postMessage. Each individual call is
trivial for JCEF to parse, and V8 handles the string concatenation and
final JSON.parse without issue.

Messages under 1MB (the vast majority) take the existing fast path unchanged.

* chore: trim verbose comments

* fix: clean up partial chunk buffer on failure

* fix: use array join instead of string concat for JCEF chunk reassembly

Replaces O(n²) string concatenation (+=) with O(n) array push + join
for JS-side chunk buffering. Extracts script generation into testable
buildChunkScripts() and adds unit tests for chunking logic.

* perf: increase chunk size from 512KB to 2MB

Reduces IPC round-trips by 4x (e.g. 7 calls instead of 26 for 10MB).
Safe because chunks are trivial JS with pure Base64 string literals.

* fix: decode chunked messages as UTF-8 to prevent mojibake

atob() returns Latin-1, so multi-byte UTF-8 characters (em dashes,
accented letters, CJK, emoji) were mangled. Use TextDecoder to
properly decode UTF-8 bytes after base64 decoding.
2026-03-26 14:59:21 -07:00
Dallin Romney
afb6b2111c
fix: prevent responseListeners memory leak in CoreMessenger (#11901)
Response listeners were only removed when data contained `"done": true`,
but most message types (file events, autocomplete, nextEdit, etc.)
return responses without a `done` field. This caused every fire-and-forget
request to leak its callback lambda permanently in the map.

Over a long session with heavy autocomplete and file navigation, this
could accumulate hundreds of thousands of entries (40-100+ MB).

Fix: invert the removal logic — remove the listener by default, and
only keep it when `done == false` (i.e., a streaming response is still
in progress). This preserves existing streaming behavior while ensuring
all non-streaming responses are cleaned up immediately.
2026-03-26 14:59:09 -07:00
Patrick Erichsen
d335ac1db1 Merge upstream continuedev/continue main (47 commits)
Includes: ClawRouter provider, JetBrains stability fixes, security
vulnerability patches, docs improvements, and dependency bumps.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 14:58:21 -07:00
Dallin Romney
581980e31e
fix: resolve SideEffectNotAllowedException in intention previews (#11894)
* fix: use Dispatchers.Default to avoid SideEffectNotAllowedException in JetBrains intention previews

DocumentChangeTracker and ActiveHandlerManager used Dispatchers.Main which
schedules work via INVOKE_LATER. JetBrains forbids this during intention
preview computation (autocomplete, inspections), throwing
SideEffectNotAllowedException. Neither class requires EDT for its coroutine
work, so switching to Dispatchers.Default resolves the issue.

Fixes #9463, #8035

* fix: use limitedParallelism(1) to prevent race conditions

Dispatchers.Default allows concurrent execution on a thread pool,
which breaks thread-safety for shared mutable state that was previously
serialized on the Main/EDT dispatcher. Using limitedParallelism(1)
preserves single-threaded execution while still avoiding the
SideEffectNotAllowedException from Dispatchers.Main.
2026-03-26 14:37:07 -07:00
Dallin Romney
b48183c023
fix: sync message type pass-through lists between core and JetBrains (#11902)
fix: add missing pass-through message types for JetBrains

Three message types sent by the GUI were missing from JetBrains'
PASS_THROUGH_TO_CORE list, causing them to be misrouted to the IDE
protocol handler instead of core:

- history/loadRemote (loading remote sessions)
- controlPlane/getEnvironment
- controlPlane/getCreditStatus
2026-03-26 14:36:39 -07:00
Dallin Romney
204c9b60fe
fix: add guard for disposed JCEF browser in sendToWebview (#11897)
* fix: add guard for disposed JCEF browser in sendToWebview

Before calling executeJavaScript, check if the browser is already closed
to prevent NPE propagation from deeper in JCEF. Also broadens the catch
from IllegalStateException to Exception to handle NPE and other errors
that can occur when the browser is in a disposed state.

Fixes #8085, #9159

* fix: add log warning when sending to disposed browser

Log the message type before early-returning on a closed JCEF browser
to aid debugging silent message drops during project disposal.
2026-03-26 14:29:32 -07:00
Dallin Romney
5a8d10fff4
fix: resolve crashes in DiffStreamHandler — unsafe cast and negative line numbers (#11893)
* fix: resolve crashes in DiffStreamHandler — unsafe cast and negative line numbers

- Use safe cast (as?) for TextEditor in undoChanges() to prevent ClassCastException
- Add early return for empty documents and clamp line numbers to prevent IndexOutOfBoundsException in initUnfinishedRangeHighlights()
- Remove redundant .toList() call in rejectAll()

Fixes #4267

* refactor: inline lineNum variable in initUnfinishedRangeHighlights
2026-03-26 14:28:11 -07:00
Dallin Romney
d1d4ecb7b9
vscode 1.3.36 (#11898)
* chore: jetbrains 65, vs code 36

* vscode 36
2026-03-26 12:03:24 -07:00
Dallin Romney
ea44368968
fix: harden JetBrains remote config sync to prevent IDE freezes (#11891)
Remove Sentry error reporting from the sync catch block — the
service<ContinueSentryService>() call could itself throw from the
background thread, letting the original exception escape and silently
killing all future scheduled runs of the sync task.

Replace with IDEA Logger warnings so failures are visible in the IDE
log. Add explicit connect/read timeouts (5s) to prevent a hung server
from blocking the shared executor indefinitely. Early-return when the
remote config URL is not configured so no work is done at all.

Remove redundant addRemoteSyncJob() call from settings reset(), which
only restores UI fields and should not restart the sync.

Ref: https://github.com/continuedev/continue/discussions/8606#discussioncomment-15003299
2026-03-26 11:53:23 -07:00
Dallin Romney
f048649b17
chore: jetbrains 65, vs code 36 (#11892) 2026-03-26 11:51:25 -07:00
Dallin Romney
c71acb8e4b
fix: resolve critical and high security vulnerabilities (#11848)
* fix: resolve critical and high security vulnerabilities across packages

Bump vulnerable dependencies and remove unused `request` package to
address ~351 of ~394 npm audit vulnerabilities reported by GitHub.

* fix: handle nullable textContent from @mozilla/readability v0.6.0

readability.textContent can be undefined in v0.6.0, add nullish
coalescing to satisfy ArticleComponent.body type constraint.
2026-03-26 10:46:44 -07:00
Ivan L
44ca86002b
Fix StringIndexOutOfBoundsException in readRangeInFile (#11881)
* Fix StringIndexOutOfBoundsException in readRangeInFile

* fix: clamp endLine relative to startLine to ensure invariant

Ensures endLine >= startLine after clamping, preventing a potential
IllegalArgumentException from subList if both values were clamped
independently to conflicting bounds.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-26 10:46:33 -07:00
1bcMax
becda53a17
feat: add ClawRouter as a provider for cost-optimized model routing (#11751)
* feat: add ClawRouter as a provider for cost-optimized model routing

ClawRouter is an open-source LLM router that automatically selects the
cheapest capable model for each request based on prompt complexity,
providing 78-96% cost savings on blended inference costs.

Changes:
- Add ClawRouterApi class extending OpenAI adapter
- Add 'clawrouter' provider to the type system
- Add ClawRouter models (auto, free, eco)
- Add ClawRouter provider config with UI setup
- Add ClawRouter logo
- Add documentation (clawrouter.mdx)

Closes #10843

* docs: enhance ClawRouter documentation

- Add ClawRouter to providers overview
- Expand documentation with:
  - Model capabilities configuration
  - Multiple roles setup
  - Troubleshooting section
  - Cost monitoring
  - Comparison with OpenRouter
  - Complexity dimensions explanation

* feat: add ClawRouter to core/llm/llms

- Add ClawRouter.ts extending OpenAI base class
- Register ClawRouter in llms/index.ts

* feat: add User-Agent headers for ClawRouter integration tracking

- Add 'User-Agent: Continue/IDE' header to identify Continue requests
- Add 'X-Continue-Provider: clawrouter' header for routing analytics
- Enhanced documentation with features list

This helps ClawRouter optimize routing decisions based on integration
source and enables better analytics for the Continue community.

* feat: complete ClawRouter integration with full provider support

- Add clawrouter to PROVIDER_HANDLES_TEMPLATING (autodetect.ts)
- Add clawrouter to PROVIDER_SUPPORTS_IMAGES (autodetect.ts)
- Add clawrouter tool support function (toolSupport.ts)
- Add supportsReasoningField and supportsReasoningDetailsField
- Add promptTemplates with osModelsEditPrompt
- Match OpenRouter implementation patterns

* feat: add ClawRouter to VS Code schema, docs nav, and AI SDK

- Add clawrouter to VS Code config_schema.json provider enum
- Add ClawRouter description in config_schema.json
- Add clawrouter to docs.json navigation (top-level providers)
- Add clawrouter to AI SDK PROVIDER_MAP

* docs: add wallet setup and x402 payment documentation

- Add Wallet & Payment Setup section to clawrouter.mdx
- Document payment tiers (free/eco/auto)
- Add wallet funding instructions (Solana/Base USDC)
- Add spend control configuration
- Update VS Code schema description with wallet info
- Update provider longDescription with payment options

* feat: add premium tier and enhanced ClawRouter features

- Add blockrun/premium routing profile (mission-critical tasks)
- Add dual-chain wallet support docs (Base EVM + Solana)
- Add model exclusion documentation
- Update routing profiles table with savings percentages
- Update comparison table with auth/payment differences
- Total 44+ models, 4 routing tiers

* test: add ClawRouter unit tests

- Add ClawRouter.vitest.ts (core/llm/llms)
  - Provider name verification
  - Default options validation
  - Reasoning field support
  - User-Agent header verification
  - Routing profiles acceptance

- Add ClawRouter.test.ts (openai-adapters)
  - Default apiBase
  - Custom apiBase override
  - Continue headers
  - OpenAI standard headers

- Add clawrouter tests to toolSupport.test.ts
  - blockrun/* routing profiles
  - Tool-supporting model patterns

* docs: add routing profile switching and enhanced error handling docs

- Add 'Switching Between Routing Profiles' section with full examples
- Add /model command tip for quick switching
- Add 'Error Handling' section comparing Continue vs ClawRouter
- Document automatic error recovery (429, 402, 500+, timeout)
- Add response header documentation for diagnostics
- Add AI-powered doctor command for troubleshooting

* fix: address PR review feedback - move docs to /more, resize logo, add provider constants, fix docs example

* fix: replace clawrouter logo with higher-res brand kit version (128x128)
2026-03-26 10:26:12 -07:00
Dallin Romney
41b3b65a5c
fix: fix listener leaks and redundant file read in autocomplete (#11863)
- statusBar.ts: onDidChangeConfiguration was registered on every
  setupStatusBar() call, accumulating unbounded listeners on each
  config change or autocomplete toggle
- NextEditWindowManager: 4 event listeners in setupListeners() were
  not added to this.disposables, surviving dispose() and accumulating
  across Next Edit toggle cycles
- constructPrefixSuffix: accept pre-loaded file contents instead of
  calling ide.readFile(), eliminating a redundant file read per
  completion (the caller already has the contents loaded)
2026-03-25 21:04:20 -07:00
Yishan
b09c4ba1f3
fix: stop CLI free-trial polling for non-free-trial models (#11215)
* fix(cli): gate free-trial status polling by model

* style(cli): format free-trial status changes

* fix(vscode): skip remote marketplace installs when ssh tests are disabled

* fix: remove unrelated e2e extension install changes

Address review feedback by reverting the unrelated changes to
extensions/vscode/package.json and removing the new
install-marketplace-extensions.mjs script.

* fix: clean up isModelUsingFreeTrial and remove NODE_ENV test workaround

- Add optional chaining on apiKeyLocation to prevent crash when undefined
- Remove unnecessary `as any` cast (union narrows via provider check)
- Remove process.env.NODE_ENV === "test" branch from production code;
  fake timers in tests handle polling without it

* fix: remove FreeTrialStatus test file

* fix: narrow ModelConfig union before accessing apiKeyLocation

Use an if-statement so TypeScript narrows the discriminated union
to the continue-proxy variant before accessing apiKeyLocation.

* fix: use 'in' operator to narrow ModelConfig union for apiKeyLocation

The Zod schema uses z.string().refine() for the non-continue-proxy
variant, which infers as plain 'string' at the type level, preventing
TypeScript from narrowing via the provider discriminant. Use an 'in'
check to narrow instead.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-25 18:51:39 -07:00
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
dependabot[bot]
ed0b811efd
chore(deps-dev): bump picomatch from 2.3.1 to 2.3.2 in /extensions/cli (#11838)
Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-25 15:45:31 -07:00
Dallin Romney
c6db97a378
fix: don't skip installs by default and sync lock file (#11837)
* fix: don't skip installs by default and sync lock file version

- Comment out SKIP_INSTALLS=true in .vscode/tasks.json so installs run
  by default (avoids issues with missing binaries like ripgrep, sqlite)
- Sync package-lock.json version to match package.json (1.3.34)

* fix: override undici-types to 7.18.1 to fix corrupted tarball

undici-types@7.18.2 has a corrupted tarball on the npm registry,
causing npm install to error in the install-all-dependencies script.
Override to 7.18.1 which is not affected.
2026-03-25 15:43:42 -07:00
Dallin Romney
2f52b46ec2
chore: prerelease bumps jb 64, vs code 35 (#11834) 2026-03-25 15:28:52 -07:00
Nate
42030c70b6 Merge upstream continuedev/continue main (66 commits)
Brings in upstream fixes and features while preserving fork's
removals (free-trial, hub/community, control-plane).

Notable upstream additions:
- Gemini AI SDK support, Bedrock API key auth
- CLI session export/import, skills slash command
- Tool support expansion, reasoning message handling
- Model catalog updates (Claude 4.6, Gemini 3.1 Pro)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 14:10:34 -07:00
Dallin Romney
653c6b9e5b
fix: remove Llama 3.1 405B from Groq provider (#11804)
* fix: remove Llama 3.1 405B from Groq provider

The model `llama3.1-405b` is no longer available on Groq, causing 404
errors. Remove it from the Groq provider packages and provider options.

Closes #10832

* Remove llama3.1-405b from Groq model list in config_schema.json

---------

Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
2026-03-25 08:52:20 -07:00
Dallin Romney
09650d4a4f
fix(gemini): update model catalog for retired/new Gemini models (#11793)
* fix(gemini): update model catalog for retired/new Gemini models

Gemini 1.x models are fully retired (returning 404), gemini-3-pro-preview
was shut down March 9 2026, and new 3.1 series models were missing.

- Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3.1-flash-image-preview
- Replace gemini-3-pro-preview with gemini-3.1-pro-preview everywhere
- Remove retired Gemini 1.x models (gemini-1.0-pro, gemini-1.5-pro, gemini-1.5-flash, gemini-1.5-flash-8b)
- Remove retired experimental 2.0 image gen models
- Fix default model from retired gemini-pro to gemini-2.5-flash
- Update docs, onboarding config, VSCode schema, GUI model picker, VertexAI provider
- Update isRecommendedAgentModel regex and tests

Fixes #10996, #10998

* fix: address review comments

- Add missing gemini-3.1-flash-image-preview to VS Code schema enum
- Tighten isRecommendedAgentModel regex to match 3-flash-preview (not bare 3-flash)
- Update case-insensitivity tests for new model names

* fix: fix misleading test description and inconsistent doc heading

- Rename test to "Gemini 3.1 Pro and 3 Flash Preview models" to match assertions
- Update chat.mdx heading from "Gemini 3 Pro" to "Gemini 3.1 Pro"
2026-03-24 20:22:47 -07:00
Dallin Romney
9abc9b5b46
jetbrains 63, vscode 34 (#11790)
chore: prerlease bumps
2026-03-24 20:06:00 -07:00
Aditya Mitra
6e0045e204
feat: support gemini through ai sdk (#10671)
* add support for gemini in ai sdk

* support thought signature conversion

* capture extra_content in assistasnt tool calls

* fix: update vercelStreamConverter tests for tool-call chunk emission

The tool-call case now returns a chunk (for Gemini thoughtSignature
support) instead of null, so tests need to expect the new behavior.

---------

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 17:14:19 -07:00
Dallin Romney
ceb3bbbd9f
Remove Gemini 2.0 Flash from defaults and update Claude defaults to 4.6 (#11782)
chore: remove Gemini 2.0 Flash from defaults/UI/docs and update Claude defaults to 4.6

Gemini 2.0 Flash is no longer supported for new Gemini users. Remove it
from the add model form, onboarding defaults, config schema, docs, and
CometAPI supported models list. Replace with Gemini 2.5 Flash where
appropriate. Gemini 2.0 Flash remains in llm-info for existing users.

Update Claude model defaults to 4.6 series (Sonnet 4.6 and Opus 4.6) in
onboarding config, workspace block templates, and documentation examples.
2026-03-24 17:03:52 -07:00
Aditya Mitra
b155702635
feat(cli): export and import sessions (#11075)
* add session export slash command

* import session

* Fix slashCommands test: mock path.isAbsolute and history manager

The import of historyManager in slashCommands.ts triggers
core/util/paths.ts which calls path.isAbsolute — not provided by
the existing path mock. Add the missing path exports and mock
core/util/history.js to avoid filesystem operations in tests.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 14:24:30 -07:00
Patrick Erichsen
bd36638ee0 docs updates 2026-03-24 13:59:42 -07:00
Aditya Mitra
65c02eabb4
feat(cli): invokable skills and import any skill (#11113)
* list all skills using /skills slash command

* make skills slash command invokable

* load the skill using skills tool

* make skills tool allowed by default

* add /import-skills slash command

* Update extensions/cli/src/tools/skills.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix stale in use effect

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:45:09 -07:00
Patrick Erichsen
5a7b104a9f fix: update CLI e2e tests for Hub removal
- Delete auth.test.ts (login/logout removed)
- Update headless-anthropic-api-key test for new error message
- Update headless-org-flag test for removed --org validation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:18:16 -07:00
Patrick Erichsen
376b35ca55 fix: remove unused imports and variables in CLI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:17:14 -07:00
Patrick Erichsen
f4a1c693b3 fix: resolve CLI lint type errors in test files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:07:19 -07:00
Patrick Erichsen
dfbf93cbb1 style: fix prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 12:59:11 -07:00
Patrick Erichsen
d04d4e6ca0 refactor: remove login/logout/remote commands and fix CLI tests
- Remove login, logout, whoami CLI commands and slash commands
- Remove remote command (used api.continue.dev)
- Fix 41 failing CLI tests for Hub removal and Local→Main Config rename

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 12:51:26 -07:00