-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I'm not able to find a related conversation on GitHub discussions that reports the same bug
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Fedora Linux
- Continue version:1.0.61
- IDE version: IntelliJ 2025.3.3 (253.31033.145)
- Model: qwen3.5:27b (ollama)
- config:
name: Local Config
version: 1.0.0
schema: v1
models:
- name: Autodetect
provider: ollama
model: AUTODETECT
roles: [chat, edit, apply]
capabilities: [tool_use]
- name: Claude 4.6 Sonnet
provider: anthropic
model: claude-sonnet-4-6
apiKey: sk-ant-api03-REDACTED
roles: [chat]
capabilities: [tool_use]
- name: Claude 4.6 Opus
provider: anthropic
model: claude-opus-4-6
apiKey: sk-ant-api03-REDACTED
roles: [chat]
capabilities: [tool_use]
tabAutocompleteModel:
provider: none
embeddingsProvider:
provider: none
context:
- provider: open
params:
onlyPinned: false
- provider: file
- provider: currentFile
- provider: code
- provider: search
OR link to agent in Continue hub:Description
So I asked the agent to create a file in a named directory called hello.txt and write hello world into it. The current project directory was Military/AirDefense. In that directory was a subdirectory called MEADS. I asked it to create it in the directory MEADS.
The hello.txt popped up in my editor with the contents I asked it to write but it was no where to be seen in my project window (in the directory I expected). I attempted to have the IDE find the file and it could not suggesting it was not in the Project at all. Project path was /home/username/Documents/Military
I would have expected it to create the file /home/username/Documents/Military/Army/AirDefense/MEADS/hello.txt
But what it actually created was
/home/username/home/username/Documents/Military/Army/AirDefense/MEADS/hello.txt
I of course suspect there is some sort of directory normalization/resolution issue somewhere int the Tools code. Using AI in another dev tool I was able to locate it in the ideUtils.ts file where most of the resolution/normalization is occurring. I have attached a patch I believe will fix the issue (and a test file as well). You'll want to verify it doesn't have negative consequences on other platforms but I think I added sufficient tests.
Fix_for_file_path_normalization_issue.patch
To reproduce
- Load a project in linux (intellij). Ask the agent to create a file called hello.txt in one of the project directories by name and write
hello worldinto the file. The agent properly determines the relative path of the file it should create and it calls the tool to create_file where it fails to create the file where you'd expect.
Log output
There is no log output. The agent thinks everything is hunky dory and in a way it is.Metadata
Metadata
Assignees
Labels
Type
Projects
Status