lsp bug: edit tool stalls after first diff; assistant hangs #4241

Open
opened 2026-02-16 17:43:08 -05:00 by yindo · 4 comments
Owner

Originally created by @hariseldon78 on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

opencode-bug-6959.log

Description

  • Symptoms: “After an edit, I see the first diff then the assistant keeps ‘thinking’ for minutes until interrupted.”

  • Steps:

  • Expected: edit completes and assistant responds promptly.

  • Actual: edit appears partially applied and assistant hangs.

  • Environment: OpenCode 1.1.1, tool edit, file is a 200 lines bash script

  • OS: Linux
    I'm using the model GPT 5.2 Codex (OAuth) OpenAI

Plugins

https://github.com/numman-ali/opencode-openai-codex-auth

OpenCode version

1.1.1

Steps to reproduce

  1. Ask assistant to edit an existing file.
  2. It shows the first diff application.
  3. It never completes; assistant keeps thinking.

Screenshot and/or share link

Image

Operating System

Linux (Arch btw)

Terminal

foot

Originally created by @hariseldon78 on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. [opencode-bug-6959.log](https://github.com/user-attachments/files/24453715/opencode-bug-6959.log) ### Description - Symptoms: “After an edit, I see the first diff then the assistant keeps ‘thinking’ for minutes until interrupted.” - Steps: - Expected: edit completes and assistant responds promptly. - Actual: edit appears partially applied and assistant hangs. - Environment: OpenCode 1.1.1, tool edit, file is a 200 lines bash script - OS: Linux I'm using the model GPT 5.2 Codex (OAuth) OpenAI ### Plugins https://github.com/numman-ali/opencode-openai-codex-auth ### OpenCode version 1.1.1 ### Steps to reproduce 1) Ask assistant to edit an existing file. 2) It shows the first diff application. 3) It never completes; assistant keeps thinking. ### Screenshot and/or share link <img width="1680" height="896" alt="Image" src="https://github.com/user-attachments/assets/86577c06-bf26-4829-bad6-25cbf8e7f856" /> ### Operating System Linux (Arch btw) ### Terminal foot
yindo added the bugperf labels 2026-02-16 17:43:08 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 5, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4061: Session hangs after file write tool execution with massive latency spike
  • #4187: Edit operation stuck after version 0.4.16
  • #5888: Opencode Hangs when used as CLI tool
  • #2144: opencode stucks while trying to write a file

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 5, 2026): This issue might be a duplicate of existing issues. Please check: - #4061: Session hangs after file write tool execution with massive latency spike - #4187: Edit operation stuck after version 0.4.16 - #5888: Opencode Hangs when used as CLI tool - #2144: opencode stucks while trying to write a file Feel free to ignore if none of these address your specific case.
Author
Owner

@hariseldon78 commented on GitHub (Jan 5, 2026):

github-actions
added perf

hey dear bot, it's not slow, it's stuck!

@hariseldon78 commented on GitHub (Jan 5, 2026): > [github-actions](https://github.com/apps/github-actions) > added perf hey dear bot, it's not slow, it's stuck!
Author
Owner

@hariseldon78 commented on GitHub (Jan 6, 2026):

edit: i attached the relevant log section

@hariseldon78 commented on GitHub (Jan 6, 2026): edit: i attached the relevant log section
Author
Owner

@hariseldon78 commented on GitHub (Jan 6, 2026):

edit: i verified that it's related to lsp function, after i disabled from config ("lsp": false) it was able to write to the file.

@hariseldon78 commented on GitHub (Jan 6, 2026): edit: i verified that it's related to lsp function, after i disabled from config ("lsp": false) it was able to write to the file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4241