[PR #9506] fix(app): terminal no longer hangs on exit or ctrl + D and closes the pane #13129

Closed
opened 2026-02-16 18:18:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9506

State: closed
Merged: Yes


What does this PR do?

fixes terminal hanging for 5-10 seconds when user types exit or Ctrl+D. Previously, the terminal would become unresponsive and eventually respawn a new terminal.

https://github.com/user-attachments/assets/9351e991-c482-4052-9602-ce6788a0f24b

How did you verify your code works?

  1. Opened terminal with Ctrl+
  2. Typed exit → terminal tab closes immediately and pane toggles closed (no hang)
  3. Tested Ctrl+D → same immediate close behavior
  4. With multiple terminals: closed one → others remain, pane stays open
  5. Closed last terminal → pane closes automatically
  6. Pressed Ctrl+ again → pane opens, new terminal auto-creates as expected

its very annoying to have this issue :)

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9506 **State:** closed **Merged:** Yes --- ### What does this PR do? fixes terminal hanging for 5-10 seconds when user types exit or Ctrl+D. Previously, the terminal would become unresponsive and eventually respawn a new terminal. https://github.com/user-attachments/assets/9351e991-c482-4052-9602-ce6788a0f24b ### How did you verify your code works? 1. Opened terminal with `Ctrl+` 2. Typed exit → terminal tab closes immediately and pane toggles closed (no hang) 3. Tested Ctrl+D → same immediate close behavior 4. With multiple terminals: closed one → others remain, pane stays open 5. Closed last terminal → pane closes automatically 6. Pressed `Ctrl+` again → pane opens, new terminal auto-creates as expected its very annoying to have this issue :)
yindo added the pull-request label 2026-02-16 18:18:00 -05:00
yindo closed this issue 2026-02-16 18:18:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13129