Commit graph

665 commits

Author SHA1 Message Date
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
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
Rezky Hamid
2874981435
feat(autocomplete): Add Qwen multi-file FIM template for repository-level autocompletion (#10612)
- Add qwenMultifileFimTemplate supporting repository-level context
- Uses <|repo_name|>, <|file_sep|> tokens for multi-file context
- Falls back to basic FIM when no snippets provided
- Resolves issue #3589
2026-03-24 13:50:22 -07:00
Dallin Romney
6856d9b1ff
Merge pull request #8367 from Ayyanaruto/f/optimize-autocompletelru-cache
feat: Enhance autocomplete cache with async initialization and improved eviction logic
2025-11-18 18:26:45 -08:00
Aditya Mitra
f1d646833f
fix: remove prepended fim_prefix tag in mercury coder (#8624) 2025-11-07 18:00:16 -08:00
Ting-Wai
f2143a754f
Merge pull request #8422 from uinstinct/static-context-ide-readfile
refactor: use ide.readFile instead of fs.readFile in static context service
2025-11-06 14:16:41 -08:00
Gabe Goodhart
d1ba7c9bba
feat: Support Granite 4 FIM and tool calling correctly (#8531)
* feat: Use the correct FIM template for Granite 4 models

Branch: GraniteFourTemplates

Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>

* feat: Add granite4 name variants to the list of models that natively support tools

Branch: GraniteFourTemplates

Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>

---------

Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
2025-10-30 17:25:24 -07:00
uinstinct
74af332dcb fix tests
fix tests

Revert "fix tests"

This reverts commit 7be374d70bd220d73154cd254ea91cab45c8a249.
2025-10-28 10:26:54 +05:30
uinstinct
9166bda360 refactor: use ide.readFile instead of fs.readFile in static context service 2025-10-24 10:44:52 +05:30
Ayyan Shaikh
52ebf5d032 fix: improve async-mutex mocking and reset instancePromise on cache close 2025-10-21 11:28:45 +00:00
Ayyan Shaikh
04323155cd feat: enhance autocomplete cache with async initialization and improved eviction logic 2025-10-21 10:25:01 +00:00
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
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
Nate
e475fb1bdb fix: additional filter for apply / edit 2025-09-09 20:04:27 -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
Dallin Romney
55068dc622 fix: update ignore package, rearrange for imports 2025-08-21 15:29:23 -07: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
lwang2070
5c9362b732
Add second check for prompt length before autocomplete (#6451)
* Add second check for prompt length before autocomplete

* Add new renderPromptWithLimit to avoid conflicting with other modules

* Fix format issue

* Refactor to remove repetitive logic

* Add tests

* Fix type error

---------

Co-authored-by: Jacob Kim <jacob@continue.dev>
2025-07-29 15:32:54 -07:00
Dallin Romney
a19cf7036b
Merge pull request #6331 from chezsmithy/fix-nested-bare-codeblocks
fix: 🐛 Fix bare markdown fences and premature code generation stops
2025-07-24 14:33:41 +02:00
Nate Sesti
fe6fa7ddec
Merge pull request #6581 from continuedev/jacob/feature/static
feat: Test static contextualization
2025-07-21 21:53:21 -07:00
chezsmithy
948246dc44 prettier and code cleanup 2025-07-13 14:47:54 -07:00
chezsmithy
1bd49276c0 fix re-exports 2025-07-13 12:15:45 -07:00
chezsmithy
f6d6c4fb81 deduplicate code 2025-07-13 11:40:50 -07:00
chezsmithy
938b7506cf Optimize for more tests and nova 2025-07-13 11:40:47 -07:00
chezsmithy
0a29810ee0 add checks to avoid stopping prematurely on stop constants 2025-07-13 11:39:56 -07:00
chezsmithy
49cf77997c performance enhancements 2025-07-13 11:39:56 -07:00
chezsmithy
370b68ca1a linting fixes 2025-07-13 11:39:56 -07:00
chezsmithy
9cd2f8b34b enhancing the solution 2025-07-13 11:39:55 -07:00
NGC13009
dc7caf9411 add qwen3-ollama support in autocomplete 2025-07-13 00:48:34 +08:00
Jacob Kim
b3e4d368bd feat: remove logging code to telemetry 2025-07-10 16:57:47 -07:00
Jacob Kim
d937a448cd Merge branch 'main' of github.com:continuedev/continue into jacob/feature/static 2025-07-09 21:08:43 -07:00
uinstinct
330fa09aab fix: autocomplete dev data timestamp as iso string 2025-07-08 21:57:28 +05:30
Jacob Kim
367e6672ca refactor: 🎨 format snippets so that it's more model prefix-friendly 2025-07-07 19:20:17 -07:00
Jacob Kim
53b28146eb log static contextualization 2025-07-05 20:32:06 -07:00
Jacob Kim
e7a75a5903 check for any return type for quick optimization 2025-07-05 17:29:45 -07:00
Jacob Kim
0f7a002377 check for config enable 2025-07-05 17:29:27 -07:00
Jacob Kim
f1cdd5fb75 prettier check 2025-07-05 17:29:14 -07:00
Jacob Kim
8b03b9a67d improve usability 2025-07-05 17:28:53 -07:00
Jacob Kim
f04260a7ef enable static contextualization when needed 2025-07-05 17:28:32 -07:00
Jacob Kim
482ed61a5e resolve merge conflicts 2025-07-05 08:49:59 -07:00
Jacob Kim
31c3bccd88 Merge branch 'main' of github.com:continuedev/continue into jacob/feature/static 2025-07-05 08:46:16 -07:00
Nate Sesti
cabc0da4e6
Merge pull request #6194 from hayden-cardwell/main
fix(autocomplete): trim trailing <|file_separator|> for Gemini/Gemma
2025-07-03 18:10:11 -07:00
Jacob Kim
61b389e5fb prettier 2025-06-28 20:14:49 -07:00
Jacob Kim
29f9c726dd static contextualization works 2025-06-28 19:56:02 -07:00
Jacob Kim
a2c1c6312e conform to interface 2025-06-28 19:55:53 -07:00
Jacob Kim
4e9690e058 move types from snippets to static 2025-06-28 19:55:42 -07:00
Jacob Kim
408038275d update types 2025-06-28 19:55:28 -07:00
Jacob Kim
97788f2b9d fix path to query 2025-06-28 19:54:53 -07:00