Skip to content

TUI freeze and show stray ANSI escape codes with piped or redirected stdin #28538

Closed as not planned

Description

@LordMikkel

Description

What happened

Running opencode < instructions.txt or "echo hello | opencode" opens the TUI, but input becomes unusable (ANSI noise, no interaction).

Actual behavior

The TUI becomes unresponsive and shows stray ANSI characters.

Expected behavior

The prompt is auto-submitted and the TUIstays interactive.

Plugins

No response

OpenCode version

1.15.5

Steps to reproduce

  1. opencode < test-prompt.txt
  2. echo hello | opencode

Screenshot and/or share link

Image

Operating System

Linux (Arch)

Terminal

Ghostty

Activity

  1. github-actions commented on May 20, 2026

    @github-actions
    Contributor

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

  2. github-actions commented on Jul 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