Commit graph

4615 commits

Author SHA1 Message Date
0583f91bea fix(gui): proactively apply min-w-0 fix across the whole Lump toolbar family
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
Third report of the same overflow class after fixing InputToolbar and
BlockSettingsTopToolbar -- this time PendingApplyStatesToolbar (the
filename + Accept/Reject row shown while a diff is pending). Rather
than keep fixing these one report at a time, audited every sibling in
LumpToolbar's mutually-exclusive render states (StreamingToolbar,
EditToolbar, EditOutcomeToolbar, IsApplyingToolbar,
PendingToolCallToolbar) -- all shared the identical missing-min-w-0
pattern on a justify-between row with one growable/truncating side and
one fixed-content side (buttons/shortcuts). Fixed all of them: min-w-0
on the truncating side (needed even with flex-1, since flex-basis:0
does not override the default min-width:auto), flex-shrink-0 +
whitespace-nowrap on the fixed side so it's what stays fully visible
if anything has to give.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 05:30:14 +03:00
31505f737e fix(gui): auto-accept diffs under Full Access mode, not just static "Automatic"
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
handleApplyStateUpdate.ts already had an auto-accept-diff mechanism for
when a tool's policy is "allowedWithoutPermission" -- but it read the
tool's static ui.toolSettings entry directly, which Full Access mode
never modifies (fullAccessMode overrides the EFFECTIVE policy only
inside evaluateToolPolicies.ts's own local computation, without writing
it back). So even with Full Access on and the edit tool call itself
already auto-approved, the resulting diff still sat waiting for a
manual Accept/Reject click -- the one prompt Full Access was supposed
to eliminate entirely.

Now also auto-accepts when fullAccessMode is on, mirroring the same
"disabled tools stay excluded" exception used everywhere else Full
Access overrides a policy.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 05:14:35 +03:00
c2cdd1957e fix(gui): "Main Config" assistant selector row also overflowed panel edge
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
Same root cause as the previous InputToolbar fix (missing min-w-0 on a
flex container chain), different row: BlockSettingsTopToolbar (the
Lump row showing the rules/tools/models icons plus the assistant/config
selector, e.g. "Main Config") had no min-w-0 on its outer flex-between
container or on the wrapper around AssistantAndOrgListbox, and that
component's own root div also lacked it. Confirmed still reproducing
after the first fix was installed and verified in the built bundle --
this was a second, separate overflow site, not a failure of the first
fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 04:41:19 +03:00
7927a3b102 fix(gui): input toolbar overflows panel edge instead of truncating model name
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
Confirmed this reproduces identically in stock upstream Continue from
the Marketplace (not introduced by this fork) -- flagging here as a
genuine bug this fork fixes on top of upstream, not a regression.

The toolbar's flex row (InputToolbar.tsx), the model-select button
(ModelSelect.tsx), and the shared ListboxButton base component
(ui/Listbox.tsx) all lacked min-w-0. CSS flexbox items default to
min-width: auto, which refuses to shrink a flex child below its
content's natural width -- so ModelSelect's line-clamp-1 truncation on
a long model name (e.g. "qwen3.8-27b (qore)") never actually engaged,
and the whole toolbar row grew wider than the panel instead, pushing
the "Active file" hint and Send button off the visible edge. Reproduces
at any panel width once the model name is long enough.

Added min-w-0 down the whole flex chain (outer toolbar row -> left
icon group -> ModelSelect's wrapper -> ListboxButton -> the label span)
and flex-shrink-0 on the right-side toolbar group (Active file hint +
Send button) so that group always stays fully visible and the model
name truncates first instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 04:26: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
d0a3c0b626
fix(gui): remove GitHub issue reporting entrypoints (#12816)
* fix(gui): remove GitHub issue reporting entrypoints

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

* style(gui): format stream error dialog

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

* fix(vscode): restore package metadata

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

* fix(gui): keep generic issue links

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

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 17:21:52 -07:00
Nate Sesti
f0df398c9d
fix(gui): remove awkward inner scroll on onboarding API-key card (#12802)
* fix(gui): remove awkward inner scroll on onboarding API-key card

In the empty chat state, `main` is a fixed-height (100vh) flex scroll
container. Its children (the StepsDiv banner area and the input/onboarding
section) were allowed to flex-shrink, and StepsDiv's always-on
`overflow-y-scroll` turned into a cramped nested scrollbox. This trapped
the onboarding API-key card in a small inner scroll area instead of
letting it lay out naturally.

Only enable StepsDiv's overflow scroll when there is chat history (when it
is `flex-1`), and mark both the empty-state StepsDiv and the input section
`shrink-0` so the onboarding card keeps its natural height and the panel
scrolls as one. Chat layout (history present) is unchanged.

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

* fix(gui): remove empty onboarding route scroll trap

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

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 16:37:32 -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
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
Nate Sesti
0e7cce8772
Update deprecation expiration date to September 2026 2026-06-06 15:36:57 -07:00
Dallin Romney
b576e39998 fix: tighten Inception provider copy and drop redundant comment
Describe Mercury 2 as a diffusion model and scope the provider blurbs
to Mercury 2 specifically rather than a Mercury family.
2026-04-16 18:18:25 -07:00
Dallin Romney
0858623d77 Merge remote-tracking branch 'upstream/main' into add-mercury-2 2026-04-16 18:12:06 -07:00
Dallin Romney
e1d37af825 feat: add Inception Labs mercury-2 model support
Register mercury-2 (128k context, tool-calling) and mercury-edit-2 in
llm-info, add Inception Labs provider to the GUI Add Chat Model form,
and flag mercury-2 as tool-capable in PROVIDER_TOOL_SUPPORT.
2026-04-16 18:12:01 -07:00
Dallin Romney
bcd29eb0ec feat: unified dynamic model fetching for all providers 2026-04-05 22:15:28 -07:00
Patrick Erichsen
b58af57c5c update deprecation banner: info style, scrollable on chat, shown in settings content area
- Change alert from warning (yellow) to info (blue) styling
- Move banner inside chat scroll container so it scrolls away
- Render banner in settings page content area (not above sidebar)
- Make banner dismissable on all pages
- Update text to "v2.0.0", buttons side-by-side with primary export button
- Add "Learn more" secondary button

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 18:01:20 -07:00
Patrick Erichsen
0dbc79abee update depreciation banner 2026-03-26 15:42:33 -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
Nate Sesti
49b7de09ac
Merge pull request #4 from continuedev/nate/cleanup
THX: Eliminate free trial, migrate docs site, document secrets
2026-03-26 14:37:29 -07:00
Nate
bf5906fd89 fix: resolve TypeScript compilation errors from merge
- Fix LocalProfileLoader test: remove controlPlaneClient refs, update
  default title to match "Main Config"
- Remove showStagingIndicator from Layout.tsx (variable was undefined)
- Remove usePlatform from MockIdeMessenger (removed from config types)
- Add GithubIcon component and DISCUSSIONS_LINK to StreamError.tsx
- Add overloaded retry constants to streamThunkWrapper.tsx

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 14:26:04 -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
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
393c92509f
fix: show actionable error when Ollama fails to parse tool calls (#11870)
* fix: show actionable error when Ollama fails to parse tool calls

When Ollama models (e.g. gpt-oss:20b) produce malformed tool call
output, Ollama returns "error parsing tool call" which previously
surfaced as an opaque "Unknown error".

Add pattern matching in analyzeError() to detect this specific error
and show a helpful message explaining the issue is transient, that the
user can resubmit, and that enabling "Only use system message tools"
in Settings > Experimental avoids Ollama's native tool call parser.

Fixes #11783, #11063, #10954, #10897, #10711, #10221, #9433

* fix: refine Ollama tool call error copy and matching

Tighten string match to "error parsing ollama response: error: error
parsing tool call" to avoid false positives. Soften settings suggestion
to "Enabling ... may reduce these errors".

* fix: match on Ollama's error string directly
2026-03-25 22:09:11 -07:00
Dallin Romney
af4563b7b1
fix: hide thinking indicator for empty thinking content (#11874)
fix: hide thinking indicator when thinking content is empty

Check that resolved thinking content has non-whitespace characters
before rendering the ThinkingBlockPeek component, preventing empty
or whitespace-only thinking blocks from showing in the chat UI.
2026-03-25 20:31:44 -07:00
dependabot[bot]
58195db391
chore(deps): bump picomatch from 2.3.1 to 2.3.2 in /gui (#11855)
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 16:47:32 -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
Patrick Erichsen
db52735228
Merge pull request #6 from continuedev/pe/product-banners
feat: add deprecation banner to IDE extensions
2026-03-25 14:34:02 -07:00
Nate
86567d6a34 Merge branch 'main' into nate/cleanup 2026-03-25 14:29:51 -07:00
Patrick Erichsen
94843b6a30 feat: add deprecation banner to IDE extensions
Adds a dismissable warning banner across the GUI (VS Code + JetBrains)
announcing that Continue is entering maintenance mode. Links to the
GitHub README and the Hub config export page. The banner auto-expires
after 2026-05-09 and can be dismissed on the home/chat page but always
shows on settings/config pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 14:24:58 -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
Nate
ae42fa9afa Merge branch 'main' into nate/cleanup
Resolve conflicts: main already removed most free-trial references
that this branch was also cleaning up. Keep staging indicator from
this branch. Accept useCredits.ts deletion from main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 14:03:32 -07:00
Dallin Romney
d6259a7304
fix: respect contextLength from YAML model config (#11807)
* fix: respect contextLength from YAML model config

Three fixes for contextLength not being respected:

1. Add contextLength to YAML model schema at the model level (not just
   inside defaultCompletionOptions), matching JSON config behavior
2. Read contextLength from both model-level and defaultCompletionOptions,
   with model-level taking precedence
3. Fix GUI selector fallback using DEFAULT_MAX_TOKENS (4096) instead of
   DEFAULT_CONTEXT_LENGTH (32768)

Closes #4638
Closes #4304

* fix: reduce complexity in modelConfigToBaseLLM

Replace find callbacks with includes() to offset complexity from
contextLength nullish coalescing.

* docs: document contextLength at model level in config.yaml reference

* docs: consistently show contextLength in defaultCompletionOptions for YAML

YAML examples use defaultCompletionOptions.contextLength, JSON examples
use model-level contextLength. Also fixes ollama guide using the wrong
key name (completionOptions -> defaultCompletionOptions).

* refactor: extract env options into helper to reduce complexity

Extract the repetitive env-to-options mapping from modelConfigToBaseLLM
into a separate applyEnvOptions function, bringing complexity well under
the limit of 36.
2026-03-25 12:26:52 -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
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
Octopus
4714bae00a
feat: add MiniMax as a new LLM provider with M2.7 default (#11367)
* feat: add MiniMax as a new LLM provider

Add MiniMax (https://platform.minimax.io) as a new LLM provider with
OpenAI-compatible API support.

Changes:
- Add MiniMax LLM provider class extending OpenAI with temperature
  clamping (must be in (0, 1]) and response_format removal
- Register provider in LLMClasses, openai-adapters, and config-types
- Add model info for MiniMax-M2.5 and MiniMax-M2.5-highspeed
  (204K context, 192K max output)
- Add GUI model selection entries and provider configuration
- Add provider documentation page

* fix: use dedicated MiniMaxApi adapter instead of generic OpenAIApi

The minimax provider was wired to the generic OpenAIApi via
openAICompatible(), which skips MiniMax-specific request fixes.
This creates a dedicated MiniMaxApi adapter class that overrides
modifyChatBody to apply temperature clamping (MiniMax requires
temperature in (0.0, 1.0]) and response_format removal, matching
the adaptations already present in core/llm/llms/MiniMax.ts.

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

* feat: upgrade MiniMax default model to M2.7

- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list
- Set MiniMax-M2.7 as default model
- Keep all previous models (M2.5, M2.5-highspeed) as alternatives
- Update docs and GUI model selection

* fix: add minimax to PROVIDER_HANDLES_TEMPLATING and PARALLEL_PROVIDERS

MiniMax uses an OpenAI-compatible chat completions API, so it handles
templating natively. MiniMax also supports parallel tool calls.

Not added to PROVIDER_SUPPORTS_IMAGES since MiniMax M2.7 is text-only.

* style: fix prettier formatting in MiniMax provider files

---------

Co-authored-by: PR Bot <pr-bot@minimaxi.com>
Co-authored-by: octo-patch <octo-patch@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:06:19 -07:00
Dallin Romney
92c4d19813
fix: "No chat model selected" error on startup (#11672)
* fix: resolve "No chat model selected" error and GUI/core model mismatch

Three fixes for the model selection bugs reported in #11656 and 12+ related issues:

1. Fix loadConfig() init ordering: await isInitialized before checking
   currentProfile, consistent with getSerializedConfig(). Prevents
   returning config: undefined during initialization race.

2. Avoid full config reload on model selection: The config/updateSelectedModel
   handler now updates the model in the cached config in-place instead of
   doing a full reloadConfig(). This eliminates the window where
   selectedModelByRole.chat is null during reload, and prevents the
   configUpdate from core overwriting the GUI's optimistic selection.

3. Guard against undefined config in GUI: handleConfigUpdate now also
   checks !configResult.config alongside configLoadInterrupted, preventing
   EMPTY_CONFIG (with chat: null) from being applied.

* fix: resolve "No chat model selected" error on startup

Two fixes for the "No chat model selected" error reported in #11656 and
12+ related issues across all providers:

1. Fix loadConfig() init ordering (ConfigHandler.ts): Move
   `await this.isInitialized` before the `!this.currentProfile` check,
   matching the pattern already used in getSerializedConfig(). Without
   this, loadConfig() called during initialization returns
   config: undefined because currentProfile hasn't been set yet.

2. Guard against undefined config in GUI (ParallelListeners.tsx):
   handleConfigUpdate now also checks `!configResult.config` alongside
   configLoadInterrupted, preventing EMPTY_CONFIG (with
   selectedModelByRole.chat: null) from being applied.

* fix: provide valid mock config to fix GUI test failures

The added `!configResult.config` guard in ParallelListeners caused tests
to bail early since MockIdeMessenger returned `config: undefined`.
2026-03-24 13:05:10 -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
Dallin Romney
93c437cb0b
Improve error handling UX and move stream retry to BaseLLM (#11773)
* Improve error handling UX and move stream retry to BaseLLM

- Remove issue reporting buttons (GitHub/Discussions) from stream error dialog
- Add error detection for invalid API keys, OpenAI org verification,
  insufficient balance (402), and failed secret templating
- Update out-of-credits copy to match current messaging
- Add sk- prefix validation for OpenAI/Anthropic keys in add model form
- Update OpenRouter API key URL to workspaces/default/keys
- Move overloaded/malformed JSON retry from GUI streamThunkWrapper to
  BaseLLM _retryableStream to avoid glitchy UI from GUI-level retries
- Add overloaded/malformed JSON detection to core retry infrastructure

* fix: simplify retry architecture and make sk- validation a warning

- Remove _retryableStream from BaseLLM; overloaded/malformed JSON retry
  belongs in withExponentialBackoff at the HTTP fetch level
- Revert defaultShouldRetry/calculateDelay exports (no longer needed externally)
- Keep OpenRouter API key URL unchanged
- Make sk- prefix validation a warning instead of blocking error

* Fix stale comment referencing removed retry decorator

* Improve 402 Insufficient Balance error message clarity

* fix: improve copy - rename "View key" to "Check API key", use warning styles, simplify secret error message

* fix: use ternary for className to avoid space stripping by prettier

* style: fix prettier formatting in OutOfCreditsDialog

---------

Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
2026-03-24 12:40:19 -07:00
Peter Dave Hello
cbbe3ef11a
Update Node.js LTS to v20.20.1 (#11506)
Node.js v20 entered Maintenance LTS six months ago. Update the version
from v20.19.0 (released over a year ago) to v20.20.1, the latest LTS
release this month.

This ensures the project leverages recent Node.js improvements,
including security updates, and stays on a supported LTS track.
2026-03-24 11:36:07 -07:00
dependabot[bot]
594049eae2
chore(deps-dev): bump flatted from 3.3.3 to 3.4.2 in /gui (#11769)
Bumps [flatted](https://github.com/WebReflection/flatted) from 3.3.3 to 3.4.2.
- [Commits](https://github.com/WebReflection/flatted/compare/v3.3.3...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.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-24 11:12:13 -07:00
Patrick Erichsen
92b99cad90 feat: strip more hub config 2026-03-23 17:32:28 -07:00
Patrick Erichsen
2485dc0128 refactor: remove Organizations settings page (CON-5885)
Not needed without Hub connectivity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00
Patrick Erichsen
e33f132295 refactor: rename "Local Config" to "Main Config" and remove background mode UI (CON-5885)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00
Patrick Erichsen
b60273502e refactor: remove Hub/Mission Control connection code (CON-5885)
Remove all ControlPlaneClient infrastructure, WorkOS auth, managed proxy,
platform profile loading, org policy enforcement, and credits UI.
Config is now fully local — only file-based config.yaml and .env secrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00
Siew's Capital Jarvis
948f0ebea7
Fix stale Models docs links in config panel (#11136)
* Fix ModelsSection docs links for ide-extensions routes

* test: remove ModelsSection test to avoid duplicate truth
2026-03-20 16:43:32 -07:00
Nate
ab84469997 style: fix prettier formatting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 14:04:06 -07:00
Nate
52c3252902 fix: eliminate free trial system from continue-fork
Delete freeTrialTransition.ts, FreeTrialStatus.tsx, FreeTrialTransitionUI.tsx,
StarterCreditsButton.tsx, StarterCreditsPopover.tsx, and related tests/mocks.

Strengthen free-trial provider filtering to hard-drop (no more warnings).
Remove checkForOutOfStarterCredits from streamChat. Simplify useCredits
hook to a one-time fetch (no polling). Remove freeTrialExceeded listener
from Layout. Clean up navigation context and toolbar references.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 14:00:02 -07:00
shanemort1982
19c3f35831
feat: add Tensorix as an LLM provider (#11184)
* feat: add Tensorix as an LLM provider

Adds Tensorix (https://tensorix.ai) as a new OpenAI-compatible
provider, giving users access to DeepSeek, Llama 4, Qwen, GLM,
and other models through a single API key.

Changes:
- New LLM class (core/llm/llms/Tensorix.ts)
- Registered in LLM index and config schema
- Added to VS Code extension config schema
- Added to GUI provider selection with AUTODETECT

* Fix missing commas in config_schema.json for tensorix entries

Co-authored-by: openhands <openhands@all-hands.dev>

* feat: address reviewer feedback for Tensorix provider

- Add tensorix to openai-adapters (types.ts + index.ts)
- Add tensorix to PROVIDER_HANDLES_TEMPLATING, PROVIDER_SUPPORTS_IMAGES,
  and PARALLEL_PROVIDERS in autodetect.ts
- Add docs page for Tensorix under more providers
- Add tensorix to docs.json navigation

Co-authored-by: openhands <openhands@all-hands.dev>

---------

Co-authored-by: openhands <openhands@all-hands.dev>
2026-03-19 16:29:45 -07:00
dependabot[bot]
a251756b94
chore(deps): bump socket.io-parser from 4.2.4 to 4.2.6 in /gui (#11603)
Bumps [socket.io-parser](https://github.com/socketio/socket.io) from 4.2.4 to 4.2.6.
- [Release notes](https://github.com/socketio/socket.io/releases)
- [Changelog](https://github.com/socketio/socket.io/blob/main/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io/compare/socket.io-parser@4.2.4...socket.io-parser@4.2.6)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-version: 4.2.6
  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-19 15:41:21 -07:00
shanevcantwell
a952ea1450
fix: remove hardcoded Unix $ prompt prefix from terminal UI (#11429)
The terminal command display hardcoded a `$ ` before every command.
This is a Unix shell convention with no meaning on Windows (PowerShell,
cmd) and doesn't reflect the user's actual shell. Since the command is
already visually distinct inside a labeled Terminal block, the prefix
adds no information and is misleading cross-platform.

Closes #11428

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 15:39:05 -07:00