Skip to content

Desktop app terminal blank with "Unexpected server error" on Windows #29089

Closed

Description

@shitist

Description

The terminal panel in OpenCode Desktop on Windows opens completely blank — no shell prompt, no keyboard input, no cursor. Typing, Ctrl+C, and all key combinations do nothing. The terminal is entirely non-interactive.

This affects both PowerShell 5.1 and PowerShell 7.6.2 (pwsh). Setting shell: pwsh or shell: powershell in config has no effect. logLevel: DEBUG also yields no additional details in server logs.

The error in pty.log repeats on every click:
Failed to create terminal Error: Unexpected server error. Check server logs for details.

server.log only shows an unrelated SQLite warning — no terminal-related errors are logged at all, indicating the sidecar server is dropping the real error before it reaches the log.

Plugins

None

OpenCode version

1.15.10

Steps to reproduce

  1. Open OpenCode Desktop on Windows 10 22H2
  2. Click the Terminal panel button (top-right)
  3. Terminal opens blank — no prompt, no input accepted
  4. Create a new terminal tab — same result
  5. Restart OpenCode — no change

Troubleshooting attempted (none resolved)

  • Set shell: powershell in opencode.json
  • Set shell: pwsh after installing PowerShell 7.6.2
  • Set logLevel: DEBUG in both global and project config
  • Multiple clean restarts

pty.log

Failed to create terminal Error: Unexpected server error. Check server logs for details.
(repeats on every click)

server.log

(node:13220) ExperimentalWarning: SQLite is an experimental feature
(No terminal-related errors logged)

Operating System

Windows 10 22H2 (Build 19045)

Terminal

OpenCode Desktop built-in terminal (also tested with new terminal tabs)

Additional context

VS Code integrated terminal works normally on the same machine with the same shells. May be related to #21498, #21469, #21440.

Screenshot

Image

Activity

  1. github-actions commented on May 24, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Please resubmit using one of the three required templates: Bug Report, Feature Request, or Question. For this report, the Bug Report template is appropriate.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on May 24, 2026
  3. github-actions commented on May 24, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now includes all the required information — a clear description, steps to reproduce, system details, and log output. We appreciate you taking the time to improve it.

  4. shitist commented on Jun 2, 2026

    @shitist
    Author

    Fixed by later updated.

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