Skip to content

opencode hangs after editing file, no further logs #22438

Closed as not planned
Closed as not planned

Description

@K8SQuantaByte

Description

After editing a C++ file, opencode stops responding. The last log entry shows service=lsp file=... touching file, and then nothing happens. The process does not exit or show any error.

Plugins

no plugins

OpenCode version

1.4.3

Steps to reproduce

No response

Screenshot and/or share link

INFO 2026-04-14T11:26:27 +1ms service=format file=.../xxx_builder.cpp formatting
INFO 2026-04-14T11:26:27 +0ms service=bus type=file.edited publishing
INFO 2026-04-14T11:26:27 +0ms service=bus type=file.watcher.updated publishing
INFO 2026-04-14T11:26:27 +3ms service=file.time sessionID=ses_xxx file=... read
INFO 2026-04-14T11:26:27 +5ms service=bus type=message.part.updated publishing
INFO 2026-04-14T11:26:27 +1ms service=lsp file=.../xxx_builder.cpp touching file
[No further logs after this line]

Operating System

Ubuntu 24.04.3 LTS

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 14, 2026
  2. github-actions commented on Apr 14, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from those, please add details explaining how it differs.

  3. K8SQuantaByte commented on Apr 14, 2026

    @K8SQuantaByte
    Author

    I encountered the same issue with C++ files (clangd). After manually installing clangd and configuring opencode to use it (instead of letting opencode auto-download), the hang no longer occurs.

  4. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. AA1HSHH commented on May 10, 2026

    @AA1HSHH

    face same problem

  6. github-actions commented on Jul 10, 2026

    @github-actions
    Contributor

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

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