builtin_edit_existing_file fails with Invalid apply state when using Gemini 2.0 Flash, works with Claude 3.7 Sonnet
Before submitting your bug report
- [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:Windows
- Continue version: 1.0.6-vscode
- IDE version:
- Model:
- config:
name: Local Assistant
version: 1.0.0
schema: v1
models:
- name: Gemini 2.0 Flash
provider: gemini
model: gemini-2.0-flash
apiKey: xx
roles:
- chat
- edit
- apply
- summarize
capabilities:
- tool_use
context:
- provider: code
- provider: docs
- provider: diff
- provider: terminal
- provider: problems
- provider: folder
- provider: codebase
OR link to assistant in Continue hub:
Description
builtin_edit_existing_file fails with Invalid apply state when using Gemini 2.0 Flash, the same works with Claude 3.7 Sonnet
Tool call error message:
builtin_edit_existing_file failed with the message:
Invalid apply state
Please try something else or request further instructions.
To reproduce
Log output
Same issue here with the following model using the release and prerelase version of Continue dev in vscode:
- name: qwen2.5-coder 7b
provider: ollama
model: qwen2.5-coder:7b
roles:
- chat
- edit
- apply
- autocomplete
apiBase: "http://localhost:11434"
I got the same with deepseek-v3
Got the same proble with qwen2.5-coder:7b-instruct-q4_K_M
Same with Gemini 2.5 Pro
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!