Skip to content

Some model except Claude always failure to apply code as diff but apply on chatbox. #1896

@isnotsafety

Description

@isnotsafety

Describe the bug

Some models that are not smart enough for code, like Gemini, always fail to apply code as diff but apply on chatbox.

Link to the Bolt URL that caused the error

Localhost

Steps to reproduce

  1. Start prompting
  2. The model generates the result of some code
  3. The model fails to continue work on the rest of the code, or when applying some change, the model writes code in the chatbox
  4. I asked to apply the code as diff and use the correct available tool, and then the model applied the code correctly.
  5. But since conversation continues again and again, the model writes in the chatbox.

Expected behavior

When asked to apply code changes, the model should use the available diff tool to apply changes to the existing codebase rather than rewriting code snippets in the chat interface. The model should recognize when code modification tools are available and use them appropriately for code changes.

Screen Recording / Screenshot

Image Image

Platform

  • OS: Linux
  • Browser: Firefox, Zen Browser
  • Version: Latest

Provider Used

Localhost

Model Used

Gemini 2.5 Pro and other models except Claude

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions