Commit graph

73 commits

Author SHA1 Message Date
Dallin Romney
a33cd37041
fix(openrouter): Gemini 3 tool support, suffix stripping, thought_signature, autocomplete endpoint (#11856)
* fix: multiple OpenRouter provider improvements

- Add google/gemini-3 to tool support prefixes so Gemini 3 models are
  detected as supporting tools via OpenRouter (#8980)
- Strip :free/:extended/:beta suffixes before matching in OpenRouter
  tool support, fixing models like meta-llama/llama-3.2-3b-instruct:free
  not being recognized (#11095)
- Add thought_signature fallback for Gemini models via OpenRouter to
  prevent 400 errors when tool calling (#8980)
- Fix autocomplete/next-edit forcing legacy /completions endpoint on
  OpenRouter, which only supports /chat/completions (#3648)
- Enrich OpenRouter error messages with provider metadata details
  instead of showing generic "Provider returned error" (#11262, #11577)

* fix: remove error enrichment, add TODO for OpenRouter error extraction

* chore: clean up verbose comments and add OpenRouter tool support tests

* style: fix prettier formatting in toolSupport.ts
2026-03-25 20:31:53 -07:00
Kenan Hasanaliyev
a2e01a31a4 fix latest user diff tracking 2025-11-30 00:51:54 -08:00
Aditya Mitra
7bc39db04d
fix: use system prompts for default endpoint type instances in next edit (#8660)
fix: use system prompts for default endpointtype models
2025-11-17 11:00:59 -08:00
Nate Sesti
f56d2b0a7b
fix: improvements to next edit (#8129)
* refactor: autocomplete feedback

* fix: don't hardcode outcome to false on aborted completion

* fix: correctly parse out backticks

* fix: correctly parse out backticks

* fix: next edit diff formatting

* fix: reduce context lines

* improv: track profile type for autocomplete

* fix: lint err

* fix: test
2025-10-08 13:09:50 -07:00
Jacob Kim
b16a73b979 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3748 2025-08-29 16:19:54 -07:00
Nate Sesti
3928a43a1b
refactor: next edit model provider rename (#7469)
* refactor: next edit model provider rename

* chore: comment
2025-08-29 15:21:26 -07:00
Jacob Kim
2136fd4bf1 docs: add comments for NextEditProvider 2025-08-29 15:08:47 -07:00
Jacob Kim
f27e7c71de
feat: add user-friendly way to toggle between FIM and next edit (#7355)
* feat: don't format when model is not mercury

* chore: bump

* fix: remove mercury-coder-nextedit

* refactor: remove refs to mercury-coder-nextedit

* feat: add util function for converting model name to enum

* refactor: add new types

* refactor: create an abstract base class for providers

* refactor: add child provider for instinct

* refactor: add provider for mercury coder

* refactor: provider factory

* refactor: use factory to create model providers based on helper.modelName

* refactor: clean up redundant logic to be more provider-friendly

* add buildPromptMetadata as an abstract method

* refactor: use handlebars and provider-specific template renderers

* refactor: use this.modelProvider instead of prompt engine

* refactor: remove redundant helper

* fix: update vitest after refactor

* feat: add test for convertNextEditModelNameToEnum

* fix: add isSecurityConcern imports

* feat: add functions to return next edit menu items and update config

* fix: get rid of callbacks

* feat: render next edit menu items

* fix: get rid of redundant completion request

* feat: update next edit status on vscode workspace config update, refactor out common logic

* feat: add continue.enableNextEdit

* feat: add aborted field to check for false positives

* fix: remove zetaDataset suffix

* feat: make sure that we are tracking completions

* feat: log aborts and move id generation to the top

* feat: all requests are tracked. when request is aborted, log as aborted with zero-value data. else, graduate it from pending completion and set aborted to false

* feat: add aborted to schema

* feat: add a toggleNextEditEnabled command

* feat: show (NE) in the status bar when next edit is enabled, add keymap

* feat: add command definitions for toggleNextEditEnabled

* refactor: handle validation in VsCodeExtension

* feat: check if model does not support next edit

* feat: use better menu item labels

* fix: casing

* chore: bump

* feat: add a function to disable next edit

* feat: disable next edit before e2e tests

* chore: bump

* fix: add a small delay to wait for UI loading

* fix: NE is shown for all statuses

* fix: wait for the NE to pop up

* fix: wait longer for disableNextEdit, clear potential next edit notifications

* fix: roll back clearAllNotifications

* fix: try disabling next edit before each

* fix: revert

* feat: add sane defaults when no workspace settings are set

* fix: fall back to false

* fix: debugging

* chore: change name

* fix: try waiting for text

* debug: more debug logs

* fix: clear notifs

* fix: suppress warning

* fix: string matching

* fix: jump label overlapping with the inline tip label (#7399)

* feat: add methods to temporarily hide and show tooltip

* feat: hide the inline tooltip when the jumpmanager's tooltip is shown

* feat: focus on chat input after apply

* revert

* fix: HOTFIX local assistant loading (#7354)

* fix: local assistant loading

* fix: no need for excluding .continue/.continue

* test: cases for config.yml and config.yaml names

* feat: remove hide/show logic for creating a new svgbuilder instance

* feat: use a new svgBuilder istance

* chore: update package-lock.json

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>

---------

Co-authored-by: uinstinct <61635505+uinstinct@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
Co-authored-by: Ting-Wai <40179554+tingwai@users.noreply.github.com>
2025-08-26 21:54:29 -04:00
Jacob Kim
c2231a9366
refactor: code cleanup for next edit (#7312)
* feat: don't format when model is not mercury

* chore: bump

* fix: remove mercury-coder-nextedit

* refactor: remove refs to mercury-coder-nextedit

* feat: add util function for converting model name to enum

* refactor: add new types

* refactor: create an abstract base class for providers

* refactor: add child provider for instinct

* refactor: add provider for mercury coder

* refactor: provider factory

* refactor: use factory to create model providers based on helper.modelName

* refactor: clean up redundant logic to be more provider-friendly

* add buildPromptMetadata as an abstract method

* refactor: use handlebars and provider-specific template renderers

* refactor: use this.modelProvider instead of prompt engine

* refactor: remove redundant helper

* fix: update vitest after refactor

* feat: add test for convertNextEditModelNameToEnum

* fix: add isSecurityConcern imports
2025-08-22 17:44:37 -04:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
Jacob Kim
c766bb060b
feat: fix the next edit provider to use the new edit endpoint (#7233)
* feat: handle new model output format

* feat: remove trailing user prompt
2025-08-19 03:22:35 -04:00
Jacob Kim
14e73dd6ad feat: only send user prompt 2025-08-18 21:53:53 -07:00
Jacob Kim
0358717d06 feat: use enums instead of strings 2025-08-18 18:52:56 -07:00
Jacob Kim
6430a84c5c
fix: next edit renders that should render decorations will render them properly (#7160)
* fix: passing next edit requests will render things

* chore: remove comment

* feat: skip whitespace only deletions

* feat: add a utility function for checking if a diff is a whitespace only deletion

* feat: add test for next edit utils

* feat: move filtering to NextEditProvider

* fix: escape newline properly

* feat: make jump decoration more visible

* feat: remove redundant escapes

* fix: undo the escapeSVG

* fix: update tests

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* feat: improve next edit UI (#7167)

* fix: use proper line heights

* fix: place the SVG at the end of the line

* fix: handle cases where the completion is a single line

* fix: allocate more memory for the GUI build step

* fix: set flag as node options

* fix: jump scrolls only after accepting

* fix: update jump manager vitest
2025-08-15 15:18:17 -04:00
Jacob Kim
f249c23f8a fix: skip redundant calculation 2025-08-11 19:19:30 -07:00
Jacob Kim
c34b1d82b1 feat: diffContext is now an array 2025-08-11 18:19:35 -07:00
Jacob Kim
fc08da2c29 refactor: pass window range as well 2025-08-08 12:29:37 -07:00
Jacob Kim
4a6fe51fe2 feat: enrich model request with system and user prompt prefix 2025-08-08 12:10:44 -07:00
Jacob Kim
3c0a9031e6 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3231 2025-08-08 11:16:06 -07:00
Jacob Kim
1c41a7fd70 feat: keep track of autocomplete context 2025-08-08 10:28:18 -07:00
Jacob Kim
eae28a87c1 feat: add more to context 2025-08-07 15:40:34 -07:00
Jacob Kim
2aae07efc3 refactor: move capabilities to the top 2025-08-06 18:24:43 -07:00
Jacob Kim
b3da8c7c70 refactor: return token, startTime, and helper 2025-08-06 16:06:45 -07:00
Jacob Kim
971eb861e6 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3283 2025-08-06 16:00:43 -07:00
Jacob Kim
e480bcf9d0 refactor: check if model supports next edit 2025-08-06 15:50:59 -07:00
Jacob Kim
fa5323f626 feat: pass difflines 2025-08-05 13:20:57 -07:00
Jacob Kim
5aaa4912da feat: respect token limits 2025-08-04 11:41:44 -07:00
Jacob Kim
8e79ce3587 refactor: rename constants to be model-specific 2025-08-04 09:53:07 -07:00
Jacob Kim
24428b97d2 refactor: clean up provideInlineCompletionItems method 2025-08-03 14:44:53 -07:00
Jacob Kim
bdcfa85df1 refactor: initialize usingFullFileDiff once 2025-08-03 13:43:15 -07:00
Jacob Kim
a49e8cbbd5 feat: toggle given fullFileDiff 2025-08-03 13:25:45 -07:00
Jacob Kim
da3230eef7 feat: handle cases where fullFileDiff is true 2025-08-03 13:12:35 -07:00
Jacob Kim
61d27c530c fix: pass the current file path and a system prompt 2025-08-02 18:51:48 -07:00
Jacob Kim
da3876adc0 feat: abort prefetch queue 2025-08-01 11:11:46 -07:00
Jacob Kim
68beae55b5 refactor: move the next editable region list to prefetch queue 2025-07-31 17:46:28 -07:00
Jacob Kim
484b4833c1 fix: prettier 2025-07-30 15:29:06 -07:00
Jacob Kim
bd3288e751 chore: delete comments 2025-07-30 15:27:03 -07:00
Jacob Kim
0191f986bc Merge branch 'main' of github.com:continuedev/continue into jacob/con-3081 2025-07-30 15:18:28 -07:00
Jacob Kim
5ffcaaa2e2 refactor: use named argument 2025-07-30 15:03:15 -07:00
Jacob Kim
1fe41e8ca3 feat: support multiple models and new mercury model 2025-07-29 18:52:26 -07:00
Jacob Kim
4c94fd8446 refactor: cleanup 2025-07-28 15:42:16 -07:00
Jacob Kim
f68bf5759f refactor: clean up 2025-07-28 15:34:51 -07:00
Jacob Kim
e5708fcb82 refactor: clean up 2025-07-28 15:08:54 -07:00
Jacob Kim
1480e1b0bd feat: check if the completion request is within a chain, and shift the next editable region accordingly 2025-07-25 15:17:53 -07:00
Jacob Kim
c172170569 feat: add a method to request the model within a given chain 2025-07-25 10:20:43 -07:00
Jacob Kim
b1946329ae feat: save NextEditOutcome instead of string 2025-07-22 13:12:24 -07:00
Jacob Kim
f9c4baa91f refactor: rename file and update imports 2025-07-21 16:07:30 -07:00
Jacob Kim
98e1b7b8ed Merge branch 'main' of github.com:continuedev/continue into jacob/feature/nextedit-chain-of-edits 2025-07-21 15:53:07 -07:00
Jacob Kim
b6ab6e3585 feat: await renderPrompt 2025-07-18 19:06:21 -07:00