continue icon indicating copy to clipboard operation
continue copied to clipboard

Webstorm: File edit tool is failing if the filename has '$' symbol

Open ShashiSrinath opened this issue 5 months ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS:Fedora Linux 42 (Workstation Edition)
- Continue version: 1.0.30
- IDE version: WebStorm 2025.2
- Model: gemini-2.5-flash-preview-05-20
- config:
  
name: Local
version: 1.0.0
schema: v1
models:
  - name: Gemini 2.0 Flash Lite
    model: custom-gemini-flash
    apiBase: https://##########/api/v0
    requestOptions:
      headers:
        X-Access-Key: ###########
    roles:
      - edit
      - apply
      - summarize
    capabilities:
      - tool_use
    defaultCompletionOptions:
      contextLength: 1000000
      maxTokens: 50000
    provider: lmstudio
  - name: Gemini 2.5 Flash Preview
    model: custom-gemini-2.5-flash-thinking
    apiBase: https://################/api/v0
    requestOptions:
      headers:
        X-Access-Key: #######################
      
    roles:
      - chat
      - apply
      - edit
      - summarize
    capabilities:
      - tool_use
    defaultCompletionOptions:
      contextLength: 1000000
      maxTokens: 50000
    provider: lmstudio
  - name: Gemini 2.5 Pro Exp
    model: custom-gemini-2.5-pro-thinking
    apiBase: https://####################/api/v0
    requestOptions:
      headers:
        X-Access-Key: #########################
    roles:
      - chat
      - edit
    capabilities:
      - tool_use
    defaultCompletionOptions:
      contextLength: 1000000
      maxTokens: 30000
    provider: lmstudio
  - name: Gemini 2.5 Pro Paid
    model: gemini-2.5-pro-preview-05-06
    apiKey: ############################
    defaultCompletionOptions:
      contextLength: 50000
      maxTokens: 20000
    provider: gemini
  - name: Voyage Reranker
    provider: voyage
    apiKey: ##########################
    model: rerank-2
    roles:
      - rerank
  - name: Voyage Code 3
    provider: voyage
    model: voyage-code-3
    apiKey: #####################
    roles: 
      - embed
  - uses: mistral/codestral
    with:
      MISTRAL_API_KEY:############################
  - name: Gemini Embeddings
    provider: gemini
    model: models/text-embedding-004
    apiKey: ######################
    roles:
      - embed  
context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: currentFile
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase
  - provider: tree
  - provider: os
mcpServers:
  - name: ddg-search
    command: uvx
    args:
      - duckduckgo-mcp-server
  - name: Context7
    command: bunx
    args:
      - -y
      - "@upstash/context7-mcp@latest"      
  - name: Repomix
    command: npx
    args:
      - "-y"
      - "repomix"
      - "--mcp"

  
  OR link to assistant in Continue hub:

Description

the edit tool does not edit the correct file if the file path or filename has '$' symbol in it.

if i try to edit a file in this path /home/user/Dev/demo/start-basic/src/routes/demo/$demoId/index.tsx

it will create a new file in this directory instead, /home/user/home/user/Dev/demo/start-basic/src/routes/demo/%24demoId/index.tsx

Image Image

To reproduce

  1. create a new "tanstack start" project npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic cd start-basic npm install npm run dev

  2. create a new file at src/routes/demo/$demoid/index.tsx

  3. try to edit it using llm agent @index.tsx change the text to we are checking

Log output


ShashiSrinath avatar Aug 08 '25 23:08 ShashiSrinath

This seems reasonably important for file system based indexing.

@uinstinct , another one to consider picking up for next week.

Patrick-Erichsen avatar Aug 12 '25 20:08 Patrick-Erichsen

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Nov 11 '25 02:11 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Nov 22 '25 02:11 github-actions[bot]