Skip to content

[BUG] Duplicate file contents if file gets updated in same response with Gemini #128

Closed

Description

@Tr1Fecta-7

Hi, I've found a bug when Gemini in AI Studio changes the content of a file to update it after initial update or creation, when I click apply changes, it seems to put the response from the update under the initial changes instead of replacing the content as needed.

Not sure if this is already a known bug, but wanted to let you know! I love it so far, thanks for your work!

Activity

  1. robertpiosik commented on Apr 16, 2025

    @robertpiosik
    Collaborator

    Hi, what I understand - your response contains more than one code block of the same file? Our logic is to merge them what is expected for "intelligent update" mode, when multiple code blocks show updates of different parts of the file.

    I'm wondering what is the solution here 🤔

  2. Tr1Fecta-7 commented on Apr 16, 2025

    @Tr1Fecta-7
    Author
  3. robertpiosik commented on Apr 16, 2025

    @robertpiosik
    Collaborator

    We don't interpret text between code blocks at all. I'll think about it, some changes will land in this area and we will see what we end up at.

  4. locked and limited conversation to collaborators on Apr 16, 2025
  5. converted this issue into a discussion #132 on Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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