continue icon indicating copy to clipboard operation
continue copied to clipboard

builtin_edit_existing_file fails with Invalid apply state when using Gemini 2.0 Flash, works with Claude 3.7 Sonnet

Open ra-ml opened this issue 9 months ago • 3 comments

Before submitting your bug report

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

Image

Log output


ra-ml avatar Apr 20 '25 08:04 ra-ml

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"

luchocarbonell avatar Apr 22 '25 15:04 luchocarbonell

I got the same with deepseek-v3

JunYang-tes avatar Apr 24 '25 10:04 JunYang-tes

Got the same proble with qwen2.5-coder:7b-instruct-q4_K_M

PawZawDev avatar Apr 25 '25 09:04 PawZawDev

Same with Gemini 2.5 Pro

NOMADooo avatar Apr 30 '25 12:04 NOMADooo

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 Aug 06 '25 02:08 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 Aug 17 '25 02:08 github-actions[bot]