Skip to content

TUI stays alive with EOF stdin and no TTY #42234

Closed as not planned
Closed as not planned

Description

@xichen1997

Reproduction

docker run -d --name opencode-eof node:22-bookworm-slim sleep infinity
docker exec opencode-eof npm install -g [email protected]
timeout -s KILL 8s docker exec opencode-eof opencode </dev/null
docker top opencode-eof -eo pid,ppid,tty,stat,etime,args

Actual

opencode does not exit. After the docker exec client is killed, the TUI process remains in the container with no TTY.

Expected

Exit with a clear error when the TUI has EOF stdin and no prompt. Otherwise the process can hold an active exec session indefinitely and prevent auto-sleep for idle environments.

Activity

  1. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

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

  2. xichen1997 commented on Aug 29, 2026

    @xichen1997
    Author

    Hi @kommander, could you take a look into that?

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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