File edits not applied - shows diff output only without modifying files #2586

Open
opened 2026-02-16 17:36:20 -05:00 by yindo · 1 comment
Owner

Originally created by @falcon-head on GitHub (Nov 4, 2025).

Description

Description

OpenCode initially works correctly and applies file edits as expected. However, after approximately 10-15 conversation summaries (when approaching context limit), it stops actually modifying files and instead only displays diff outputs in the terminal without applying any changes.

Expected Behavior

OpenCode should continue to apply file modifications even after multiple conversation summaries, maintaining its ability to write changes to files throughout extended coding sessions.

Actual Behavior

  • First 10-15 operations: Works correctly, files are modified as requested
  • After ~10-15 conversation summaries: Stops writing to files, only shows git-style diff output
  • Files remain completely unchanged despite showing the intended modifications in diff format

Impact

This breaks long coding sessions, forcing users to restart OpenCode frequently or manually apply changes from diff outputs.

Additional Context

  • Using GitHub provider with Claude Haiku 4.5
  • OpenCode version 1.0.16 (recently upgraded to 1.0.20 still see this issue)
  • Issue is reproducible after extended use

OpenCode version

1.0.20

Steps to reproduce

  1. Start a new OpenCode session with GitHub Copilot provider (Claude Haiku 4.5)
  2. Begin making file modifications (ask it to edit various files in your project)
  3. Continue requesting changes until OpenCode summarizes the conversation approximately 10-15 times
  4. After multiple summaries, request another file edit (e.g., "Add new menu items to header component")
  5. Observe: OpenCode shows diff output in terminal instead of applying changes
  6. Check the actual file - remains unchanged

Screenshot and/or share link

Image

Operating System

macOS 26.0.1

Terminal

Kitty terminal

Originally created by @falcon-head on GitHub (Nov 4, 2025). ### Description ## Description OpenCode initially works correctly and applies file edits as expected. However, after approximately 10-15 conversation summaries (when approaching context limit), it stops actually modifying files and instead only displays diff outputs in the terminal without applying any changes. ### Expected Behavior OpenCode should continue to apply file modifications even after multiple conversation summaries, maintaining its ability to write changes to files throughout extended coding sessions. ### Actual Behavior - First 10-15 operations: Works correctly, files are modified as requested - After ~10-15 conversation summaries: Stops writing to files, only shows git-style diff output - Files remain completely unchanged despite showing the intended modifications in diff format ### Impact This breaks long coding sessions, forcing users to restart OpenCode frequently or manually apply changes from diff outputs. ### Additional Context - Using GitHub provider with Claude Haiku 4.5 - OpenCode version 1.0.16 (recently upgraded to 1.0.20 still see this issue) - Issue is reproducible after extended use ### OpenCode version 1.0.20 ### Steps to reproduce 1. Start a new OpenCode session with GitHub Copilot provider (Claude Haiku 4.5) 2. Begin making file modifications (ask it to edit various files in your project) 3. Continue requesting changes until OpenCode summarizes the conversation approximately 10-15 times 4. After multiple summaries, request another file edit (e.g., "Add new menu items to header component") 5. Observe: OpenCode shows diff output in terminal instead of applying changes 6. Check the actual file - remains unchanged ### Screenshot and/or share link <img width="2529" height="864" alt="Image" src="https://github.com/user-attachments/assets/c5d8f3e7-fdac-4eb7-bf2d-61a9bbce7403" /> ### Operating System macOS 26.0.1 ### Terminal Kitty terminal
yindo added the model-problem label 2026-02-16 17:36:20 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 4, 2025):

It looks to me like the model isn't calling tools anymore at that stage

@rekram1-node commented on GitHub (Nov 4, 2025): It looks to me like the model isn't calling tools anymore at that stage
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2586