opentui: Terminal fails to launch on macOS #7861

Open
opened 2026-02-16 18:08:30 -05:00 by yindo · 1 comment
Owner

Originally created by @poboll on GitHub (Jan 28, 2026).

Originally assigned to: @kommander on GitHub.

Description

I have noticed that the issue where the terminal does not open on macOS has not been fixed yet. When I try to launch the terminal (opentui) within OpenCode, it fails to start.
Error Log:
I encountered the following error which suggests a PTY leak:

[forkpty: Device not configured]
[未能创建新的进程和打开伪终端(pseudo-tty)。]

Image

Plugins

OpenCode.app

OpenCode version

Version 1.1.39 (1.1.39)

Steps to reproduce

  1. Launch OpenCode on macOS.
  2. Attempt to open the terminal / opentui.
  3. Observe that the terminal window does not appear or fails to initialize.

Screenshot and/or share link

Image

Operating System

macOS 13.6.6

Terminal

Terminal.app

Originally created by @poboll on GitHub (Jan 28, 2026). Originally assigned to: @kommander on GitHub. ### Description I have noticed that the issue where the terminal does not open on macOS has not been fixed yet. When I try to launch the terminal (opentui) within OpenCode, it fails to start. **Error Log:** I encountered the following error which suggests a PTY leak: > [forkpty: Device not configured] > [未能创建新的进程和打开伪终端(pseudo-tty)。] <img width="1872" height="1206" alt="Image" src="https://github.com/user-attachments/assets/bec8ea45-2fd9-41f9-b987-69a7557c3240" /> ### Plugins OpenCode.app ### OpenCode version Version 1.1.39 (1.1.39) ### Steps to reproduce 1. Launch OpenCode on macOS. 2. Attempt to open the terminal / opentui. 3. Observe that the terminal window does not appear or fails to initialize. ### Screenshot and/or share link <img width="1872" height="1206" alt="Image" src="https://github.com/user-attachments/assets/d42ae5da-3afe-488c-abbd-b4909f2d4df4" /> ### Operating System macOS 13.6.6 ### Terminal Terminal.app
yindo added the opentuibug labels 2026-02-16 18:08:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

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

  • #7861: macOS: Terminal becomes unusable after opencode exits ("dead terminal") - Related to macOS terminal/PTY issues
  • #9505: Desktop app fails to start on Linux/Wayland - 'open terminal failed: not a terminal' - Similar PTY allocation/creation failures

Both issues involve PTY (pseudo-terminal) creation failures on macOS/Linux systems. If you're experiencing the [forkpty: Device not configured] error, these discussions might provide helpful context.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #7861: macOS: Terminal becomes unusable after opencode exits ("dead terminal") - Related to macOS terminal/PTY issues - #9505: Desktop app fails to start on Linux/Wayland - 'open terminal failed: not a terminal' - Similar PTY allocation/creation failures Both issues involve PTY (pseudo-terminal) creation failures on macOS/Linux systems. If you're experiencing the [forkpty: Device not configured] error, these discussions might provide helpful context. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7861