Skip to content

TUI input frozen when project contains large binary files (project copy refresh hangs) #38201

Closed as not planned

Description

@fxrobin

Description

The TUI becomes unresponsive when opened in a project directory containing large binary files (MP3, WAV, ROM, PNG, etc. — several hundred MB total). The prompt input accepts text but pressing Enter does nothing. The TUI renders correctly (logo, prompt box, status bar) but the input never submits.

Environment

  • OpenCode version: 1.18.4
  • OS: Linux (Ubuntu)
  • Terminal: GNOME Terminal / standard terminal emulator

Steps to reproduce

  1. Create or clone a git repository with large binary assets (e.g. 200+ MB of MP3/WAV/ROM files)
  2. Run opencode in that directory
  3. The TUI displays correctly with the prompt input
  4. Type text in the prompt — text appears normally
  5. Press Enter — nothing happens, the prompt is never submitted

Expected behavior

The prompt should be submitted when pressing Enter, regardless of the project file contents.

Actual behavior

The TUI input is frozen. Pressing Enter has no effect.

Logs

With --log-level DEBUG --print-logs, the last log line is always:

message="project copy refresh started" projectID=<hash>

The "project copy refresh done" message never appears. The process hangs indefinitely at this step.

Workarounds attempted

  • Setting "snapshot": false in opencode.json — no effect
  • Adding patterns to "watcher": { "ignore": [...] } in opencode.json — no effect
  • Removing symlinks to external repos — no effect
  • Using opencode run "prompt" (CLI mode) — works correctly, the issue is TUI-specific

Additional context

  • The same OpenCode installation works perfectly in ~ (home directory) and in smaller projects
  • opencode run (non-interactive CLI) works correctly in the same directory
  • The issue appears to be that the "project copy refresh" blocks the TUI event loop, preventing input from being processed
  • Projects with only source code (no large binaries) are not affected

Activity

  1. github-actions commented on Jul 21, 2026

    @github-actions
    Contributor

    This issue might be related to existing issues. Please check:

    These may share the same root cause — the project copy refresh running synchronously or blocking the TUI event loop.

  2. added a commit that references this issue on Jul 28, 2026
    4d077b0
  3. github-actions commented on Sep 20, 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