Extra brackets automatically added during AI autocompletion with Continue.dev extension
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- debian, java, typescript
Research direction
Reproduce the issue with Continue.dev using the Codestral configuration in Robertor.java, then compare code completion insertion with native VS Code or GitHub Codespaces. Start by tracing the ghost-view text insertion entry point mentioned in the report; done means accepting autocomplete no longer adds an extra bracket.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Remote OS: Debain 12
code-server --version: 1.101.2
Steps to Reproduce
Step 1: Install Continue.dev
Install the Continue.dev extension in your IDE.
Step 2: Configure Continue with Codestral Free API
Configure Continue to use the Codestral free API key for autocomplete functionality.
Example Configuration
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Codestral
provider: mistral
model: codestral-latest
apiKey: XXXXXXXXXXXXXXXXXXXXXXXXXX
roles:
- autocomplete
- chat
- edit
- apply
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
Step 3: Enable Auto-complete
Enable the auto-complete feature in Continue.dev settings.
Step 4: Create Test File
Create a new file named Robertor.java and add the following comment:
// a java swing programm that takes an input X number and display a circle with the radius of X
Step 5: Test Autocomplete
- Move to the next line by pressing Enter
- Accept suggestions using the Tab key
Issue: Extra Bracket Appears
An extra bracket appears during autocomplete, as demonstrated in the capture video.
https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217
Expected
No extra bracket like in openvscode-server or codespaces :
https://github.com/user-attachments/assets/8e67a3b5-118f-4f26-81d8-d0e11c4f486b
Actual
I dont know but code completion appearing in continue console doesnt'have bracket .
That means that the issue is during insertion in the ghost view text , something is auto adding brackets.
Logs
Screenshot/Video
On code-server , extra bracket :
https://github.com/user-attachments/assets/2f9fb6a3-a250-493b-a956-b6383cf01217
Working example on codespace :
https://github.com/user-attachments/assets/aadf4d89-d307-4e96-b304-ed4461a8c5d2
Does this bug reproduce in native VS Code?
No, this works as expected in native VS Code
Does this bug reproduce in GitHub Codespaces?
No, this works as expected in GitHub Codespaces
Are you accessing code-server over a secure context?
- I am using a secure context.
Notes
No response
- Dominant language
- TypeScript
- Stars
- 79.4k
- Forks
- 6.9k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 39
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/code-server
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
coder/code-server#8017 · 2 comments ·
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
coder/code-server#8013 · 4 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
coder/code-server#7976 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
coder/code-server#7962 · 3 comments ·
-
bug needs-investigation
Difficulty 4/5 3-5 days Newbie friendliness 55/100
coder/code-server#7955 · 1 comment ·
All issues in coder/code-server
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100