continue icon indicating copy to clipboard operation
continue copied to clipboard

Autocomplete: The same context appears twice in the prompt coming from RecentlyVisitedRanges

Open ferenci84 opened this issue 6 months ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS:
- Continue version: 1.1.25
- IDE version: VS Code
- Model: Together.ai Qwen Coder 32B Instruct
- config:
  
"tabAutocompleteModel": {
    "title": "Together Qwen2.5 Coder",
    "provider": "together",
    "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
    "apiKey": "",
    "completionOptions": {
      "temperature": 0.5,
      "topP": 0.999,
      "topK": 250,
      "maxTokens": 100
    }
  },
  "tabAutocompleteOptions": {
    "maxPromptTokens": 1024,
    "debounceDelay": 500,
    "maxSuffixPercentage": 0.2,
    "prefixPercentage": 0.3,
    "experimental_includeClipboard": false,
    "experimental_includeRecentlyVisitedRanges": true,
    "experimental_includeRecentlyEditedRanges": false,
    "experimental_includeDiff": false,
    "useImports": true
  }

Description

In the context part of the completion, the same file and range appears twice, as can be seen on the image: Image

To reproduce

Use the experimental configuration above to enable only RecentlyEditedRanges. Visit more than one place. Trigger autocomplete.

Log output


ferenci84 avatar Apr 24 '25 18:04 ferenci84