Skip to content

TUI becomes unresponsive upon running a non-terminating process such as a web server #682

Closed

Description

@zkdiff

Description

When running a non-terminating process (like a web server) within the TUI, the interface becomes unresponsive to normal input. The ESC key, which should interrupt the process, has no effect even when pressed repeatedly.

Current Behavior

  • The TUI freezes when a non-terminating process is started
  • Pressing ESC repeatedly does nothing to regain control
  • Slash commands still function properly (e.g., /details toggles the details view, /models lists available models)
  • The only way to regain control is to kill the process from another terminal

Steps to Reproduce

  1. Start opencode
  2. Run a non-terminating process (e.g., a web server on port 5173)
  3. Try to interrupt using ESC key - observe that it has no effect
  4. Open a second terminal
  5. Run lsof -i :5173 to find the PID of the server process
  6. Execute kill $pid to terminate the process
  7. Observe that opencode resumes normal operation

Expected Behavior

The ESC key (or another designated key combination) should interrupt the running process and return control to the TUI without requiring external intervention.

Screenshots

Before killing the process:

Image

After killing the process:

Image

Environment

  • OS: ubuntu
  • Version: 0.1.189
  • Terminal: VSCode integrated terminal

Activity

  1. zkdiff commented on Jul 4, 2025

    @zkdiff
    Author

    Possibly related:
    Image

    When this exception is raised, the same behavior arise. It seems there might be some overlap in the underlying issue, but not necessarily.

  2. self-assigned this
    on Jul 4, 2025
  3. dkarter commented on Jul 4, 2025

    @dkarter
    Contributor

    not sure if this is the same issue:

    CleanShot.2025-07-04.at.14.14.00.mp4
  4. John0x commented on Aug 13, 2025

    @John0x

    yeah, non terminating commands aren't supported yet, right?

  5. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  6. arshbot commented on Dec 30, 2025

    @arshbot

    Experience this often, simple workaround is to instruct model to not run such commands and prompt user to run them.

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