Skip to content

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

@ShashiSrinath

Description

@ShashiSrinath

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

Metadata

Metadata

Labels

area:editRelates to side panel Edit featureide:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions