Skip to content

opencode TUI fails to launch with setRawMode errno 9 on macOS (web UI works) #24240

Closed as not planned

Description

@mikeyi2a

Description

opencode v1.14.24 installed via Homebrew on macOS (Darwin 25.3.0, zsh) launches to a blank screen when run as opencode (TUI mode). The process starts but never renders the interface and does not respond to input.

Environment

opencode 1.14.24 (/opt/homebrew/bin/opencode)
macOS Darwin 25.3.0, zsh
Reproduced in both IDE integrated terminal and macOS Terminal.app
Steps tried

opencode --version / --help → both work correctly
opencode --print-logs --log-level DEBUG → blank screen
opencode --pure --print-logs --log-level DEBUG → blank screen (DB migration completed successfully on this run)
Cleared ~/.local/share/opencode and /.cache/opencode → no change
Tried in native Terminal.app (not IDE terminal) → still blank
Log output (
/opencode.log)

INFO service=server-proxy version=1.14.24 args=["--print-logs","--log-level","DEBUG"] opencode
ERROR service=server-proxy e=setRawMode failed with errno: 9 exception
ERROR service=server-proxy error=setRawMode failed with errno: 9 process error
ERROR service=server-proxy e=EIO: i/o error, read exception
Workaround
opencode web launches successfully and is fully functional, so the issue is isolated to the TUI's TTY/raw-mode initialization.

Expected
TUI renders and accepts input.

Actual
Blank screen, no input response, setRawMode fails with errno 9 (EBADF).

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Apr 25, 2026
  2. github-actions commented on Apr 25, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please feel free to keep it open and add any additional context that differentiates it.

  3. MonsignorEduardo commented on Apr 26, 2026

    @MonsignorEduardo

    I think is related to #24358 or at least I have the same problem with Ghostty

  4. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  5. SunastanS commented on May 15, 2026

    @SunastanS

    I can narrow this down to foot specifically.

    Environment:

    • Fedora 43
    • glibc 2.42
    • opencode 1.15.0
    • terminal: foot

    Results:

    • foot + opencode: crashes
    • foot + tmux + opencode: works
    • gnome-terminal + opencode: works
    • xfce4-terminal + opencode: works
    • kitty + opencode: works

    Log:
    ERROR e=setRawMode failed with errno: 5 exception
    ERROR error=setRawMode failed with errno: 5 process error

  6. github-actions commented on Jul 15, 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