Webstorm: File edit tool is failing if the filename has '$' symbol
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I believe this is a bug. I'll try to join the Continue Discord for questions
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
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
To reproduce
-
create a new "tanstack start" project
npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basiccd start-basicnpm installnpm run dev -
create a new file at src/routes/demo/$demoid/index.tsx
-
try to edit it using llm agent
@index.tsx change the text to we are checking
Log output
This seems reasonably important for file system based indexing.
@uinstinct , another one to consider picking up for next week.
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.
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!