continuedev/continue

Add selected code to context not working anymore

Closed this issue · 1 comments

Before submitting your bug report

Relevant environment info

- OS: Fedora 43
- Continue version: 1.0.42 (try 1.0.43)
- IDE version: Intellij IDEA 2025.1.4.1 (Ultimate Edition)
- Model: All
- config:
  
name: open-webui
version: 0.0.1
schema: v1
model_defaults:
  provider: openai
  apiKey: ${{ secrets.OPEN_WEBUI_API_KEY }}
  apiBase: https://ai/api
  capabilities:
    - tool_use
    - image_input
models:
  - name: openai
    provider: openai
    apiKey: ${{ secrets.OPEN_WEBUI_API_KEY }}
    apiBase: https://ai/api
    capabilities:
      - tool_use
      - image_input
    model: AUTODETECT
    roles:
      - chat
      - edit
  - name: nomic-embed-text
    provider: ollama
    model: nomic-embed-text
    roles:
      - embed
  - name: huggingface-tei
    provider: huggingface-tei
    model: BAAI/bge-reranker-large
    apiBase: http://localhost:8080
    apiKey: xxx
    roles:
      - rerank
  - name: Relace Instant Apply
    provider: relace
    model: Fast-Apply
    apiKey: ${{ inputs.RELACE_API_KEY }}
    roles:
      - apply
    promptTemplates:
      apply: "{{{ new_code }}}"
    defaultCompletionOptions:
      contextLength: 40000
      maxTokens: 32000
  - name: Perso - claude-4-sonnet
    provider: anthropic
    model: claude-sonnet-4-0
    apiKey: sk
    roles:
      - chat
      - edit
      - apply
    defaultCompletionOptions:
      contextLength: 200000
      maxTokens: 64000
      promptCaching: true
    capabilities:
      - tool_use
      - image_input
  - name: Perso - claude-3.5-sonnet
    provider: anthropic
    model: claude-3-5-sonnet-latest
    apiKey: sk
    roles:
      - chat
      - edit
      - apply
    defaultCompletionOptions:
      contextLength: 200000
      maxTokens: 8192
      promptCaching: true
prompts:
  - name: check mistakes
    description: Check for mistakes in my code
    prompt: >
      Please read the highlighted code and check for any mistakes. You should
      look for the following, and be extremely vigilant:
        - Syntax errors
        - Logic errors
        - Security vulnerabilities
        - Performance issues
        - Anything else that looks wrong

      Once you find an error, please explain it as clearly as possible, but
      without using extra words. For example, instead of saying 'I think there
      is a syntax error on line 5', you should say 'Syntax error on line 5'.
      Give your answer as one bullet point per mistake found.
context:
  - provider: diff
  - provider: open
  - provider: web
    params:
      "false": 10
  - provider: terminal
  - provider: code
  - provider: docs
  - provider: url
  - provider: tree
  - provider: os
  - provider: search
    params:
      maxResults: 200
  - provider: codebase
    params:
      nRetrieve: 30
      nFinal: 3
  - provider: repo-map
  - provider: folder
    params:
      nRetrieve: 25
      nFinal: 5
      useReranking: true
  
  OR link to agent in Continue hub:

Description

No response

To reproduce

  1. CTRL + SHIFT + L on selected code
  2. Nothing is selected
  3. Try clic right on selected code (no option available to select code to context for CTRL + SHOFT + L)
Image

Try CTRL + L = Ok

Log output

Thanks @Floflobel for reporting! This regression must have appeared during the recent fixes related to JCEF usage (#7291). I remember testing it manually back then, but I must have overlooked it.

The fix is on the way (#7835).