Commit graph

239 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
881d3a6986 add current file path to prompt 2025-12-04 12:37:53 -08: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
uinstinct
c77a10a191 fix: prevent security concern files in next edit diffs 2025-11-10 13:29:52 +05:30
Nate Sesti
48a918c41f
hotfix(autocomplete): remove mercury model special handling and adjust code block extraction (#8252)
fix(autocomplete): remove mercury model special handling and adjust code block extraction
2025-10-14 12:59:14 -07:00
Nate Sesti
d394279da3
Remove debug logging and comment out console statements (#8175) 2025-10-13 11:02:52 -07:00
Nate Sesti
64b7061618
Add debug logging to feedback capture in NextEditLoggingService (#8174) 2025-10-09 16:31:26 -07: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
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
Jacob Kim
3ba290af77 docs: delete stale test file 2025-08-29 16:52:22 -07:00
Jacob Kim
4ddceaab26 fix: comment out stale test 2025-08-29 16:34:04 -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
Jacob Kim
e6d7b105f5 docs: add comments to region calculator 2025-08-29 16:18:17 -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
af30c19d91 docs: add comments for the prefetch queue 2025-08-29 15:16:18 -07:00
Jacob Kim
888b3b1271 docs: add comments for BaseNextEditProvider 2025-08-29 15:09:16 -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
83b5a3c14f
feat: wrap each recently viewed code snippet inside a token block (#7269)
* feat: wrap each recently viewed code snippet inside a token block

* fix: update vitest

* fix: update test
2025-08-20 21:00:32 -04:00
Jacob Kim
c37c8111f7
feat: check for model before using full file diffs (#7222)
* fix: Excerpts -> Excerpt

* fix: test for Excerpt instead of Excerpts

* feat: add a public method to update usingFullFIleDiff

* feat: use full file diff for mercury only

* chore: remove console.log

* docs: add jsdocs

* refactor: use enums and const
2025-08-19 14:35:54 -04: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
f5a69ea945 Merge branch 'main' of github.com:continuedev/continue into jacob/con-3563 2025-08-18 21:55:51 -07:00
Jacob Kim
14e73dd6ad feat: only send user prompt 2025-08-18 21:53:53 -07:00
Jacob Kim
1e7aeeabbc feat: add prompt generation templates for mercury-coder 2025-08-18 18:53:19 -07:00
Jacob Kim
0358717d06 feat: use enums instead of strings 2025-08-18 18:52:56 -07:00
Jacob Kim
2efdf38a17 feat: add mercury-coder specific constants 2025-08-18 18:52:08 -07:00
Dallin Romney
73fdf19de8
feat: rebrand assistants as agents (#7227)
* feat: rebrand assistants as agents

* fix: assitant-agent cleanup part 1

* fix: file references

* fix: missing file reference in config yaml tests

* chore: assistant -> agent cleanup
2025-08-18 16:25:30 -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
Patrick Erichsen
3253c11821 add modelProvider to PromptLog 2025-08-13 22:06:01 -07:00
Patrick Erichsen
b8e4e95487 fix: resolve TypeScript errors after dev data schema changes
- Update test data to use modelName instead of modelTitle in log.vitest.ts
- Add missing modelProvider and modelName to nextEditWithHistory event logging

Resolves CI failures from schema standardization changes.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 21:00:51 -07:00
Jacob Kim
3606665992
feat: add more next edit endpoints to protocol (#7110)
* feat: add endpoint handlers in core

* feat: export interface

* feat: update protocol to support more next edit endpoints

* feat: add new next edit endpoints to passthrough

* feat: support new next edit endpoints to jetbrains
2025-08-12 21:25:01 -04:00
Jacob Kim
db14da1cbe fix: update test using the latest editDiffHistory 2025-08-12 13:54:35 -07:00
Jacob Kim
d5860296fb feat: add debugging log method to peek first three 2025-08-12 13:41:44 -07:00
Jacob Kim
f249c23f8a fix: skip redundant calculation 2025-08-11 19:19:30 -07:00
Jacob Kim
72399ca5cc feat: use a list of diffContexts instead of a single one 2025-08-11 18:20:05 -07:00
Jacob Kim
c34b1d82b1 feat: diffContext is now an array 2025-08-11 18:19:35 -07:00
Jacob Kim
3b878986c5 feat: sliding jump starts at the cursor line and expands outwards 2025-08-11 17:45:57 -07:00
Jacob Kim
10d4d4cda0 fix: editedCodeWithTokens uses the processed context block 2025-08-11 17:45:27 -07:00
Jacob Kim
d1f06da04e refactor: rename model 1 to instinct 2025-08-11 17:44:11 -07:00
Jacob Kim
ea02b4b446 test: update test 2025-08-08 15:16:45 -07:00
Jacob Kim
43dd4f622e fix: prompt and userEdits 2025-08-08 15:16:38 -07:00
Jacob Kim
15a78628f0 test: update test 2025-08-08 15:16:16 -07:00
Jacob Kim
3c5d91aaaa feat: add hunk to prompt 2025-08-08 15:16:09 -07:00
Jacob Kim
4cfe12f5e0 test: update test 2025-08-08 15:13:56 -07:00
Jacob Kim
9937209bb7 feat: add hunk details to metadata 2025-08-08 15:13:48 -07:00
Jacob Kim
5314fcbe25 test: update test 2025-08-08 12:30:02 -07:00