Skip to content

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

Closed as not planned

Description

@hariseldon78

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

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Jan 5, 2026
  2. github-actions commented on Jan 5, 2026

    @github-actions
    Contributor

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

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

  3. hariseldon78 commented on Jan 6, 2026

    @hariseldon78
    Author

    github-actions
    added perf

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

  4. hariseldon78 commented on Jan 6, 2026

    @hariseldon78
    Author

    edit: i attached the relevant log section

  5. changed the title [-]edit tool stalls after first diff; assistant hangs[/-] [+]lsp bug: edit tool stalls after first diff; assistant hangs[/+] on Jan 6, 2026
  6. hariseldon78 commented on Jan 6, 2026

    @hariseldon78
    Author

    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.

  7. github-actions commented on Mar 25, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  8. zxc503 commented on Apr 8, 2026

    @zxc503

    same issue, works after disabling LSP.

  9. KeroZhai commented on Apr 8, 2026

    @KeroZhai

    This is likely due to a network issue. OpenCode will attempt to download the corresponding LSP Server. In my case it's Java LSP(JDTLS), and after I provide it manually, everything works fine.

  10. removed
    bugSomething isn't working
    perfIndicates a performance issue or need for optimization
    on May 3, 2026
  11. urayoru113 commented on May 23, 2026

    @urayoru113

    In my case, OpenCode was installed via Nix into the /nix/store/opencode/... directory, which is strictly read-only by design.

    This prevents the application from writing or modifying files within that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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