Skip to content

race condition when applying changes immediatly after each other on same file #3856

@chenxin-yan

Description

@chenxin-yan

Description

When multiple changes are proposed for user to accept on the same file and user press "enter" to accept them one by one immediately after each other, the last change on the file will override all previous changes, resulting the previous changes not being applied correctly on that file and only the last change is applied correctly.

OpenCode version

0.15.29

Steps to reproduce

  1. send a prompt that results in multiple changes that need to be accepted sequentially on one file
  2. accept all of them by pressing "enter" multiple times quickly
  3. only the last change is applied correctly

Screenshot and/or share link

No response

Operating System

macOS 14.7.1

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions