Skip to content

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

@zkdiff

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

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