Skip to content

TUI hangs with blank screen on startup (regression in v1.17.1) #32560

Closed as duplicate

Description

@gschambers

Description

opencode (TUI mode) opens a blank terminal screen and hangs. The terminal enters the alternate screen buffer but never renders content. Ctrl-C exits cleanly.

opencode run "<message>" works — only TUI mode is affected. Starting from outside a project directory (e.g. $HOME) also works.

Bisect

Version TUI startup
1.16.2 OK
1.17.0 OK
1.17.1 HANG
1.17.7 HANG

Sample

sample of the hung process shows ~99.6% of samples in kevent64 from the TUI event loop. Not CPU-bound — waiting for an event that never arrives.

1693 kevent64 (in libsystem_kernel.dylib) + 8

Environment

  • macOS ARM64
  • opencode 1.17.7 (Homebrew)
  • Reproduces with --pure and with MCP disabled in project config
  • Shell: zsh

Reproduction

cd /path/to/any-project-with-agents-md
opencode
# → blank TUI, hangs
# Ctrl-C to exit

# Compare: run mode works
opencode run "hello"

Additional notes

--print-logs --log-level DEBUG produces no log output during the hang — the TUI stalls before logging initializes.

Activity

  1. github-actions commented on Jun 16, 2026

    @github-actions
    Contributor

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

  2. gschambers commented on Jun 16, 2026

    @gschambers
    Author

    Duplicate of #32361 — same blank-TUI hang, same terminal-capability freeze before logging, same works fine. Adding macOS + 1.17.1 bisect data over there.

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