Skip to content

/exit or /quit command kills the terminal on Windows PowerShell #27749

@L-owen

Description

@L-owen

Description

When exiting the TUI (via /quit, /exit, or tab-completed /quit), the entire terminal window/tab closes instead of returning to the shell prompt. This happens both with bun run dev and the bundled opencode command on Windows 11.

Plugins

No response

OpenCode version

1.15.0

Steps to reproduce

  1. Start opencode TUI (bun run dev or opencode)
  2. Type /qui then press Tab to autocomplete to /quit or type /quit and press enter or Ctrl + C to quit
  3. Expected behavior: TUI exits, shell prompt is restored, terminal window stays open.
  4. Actual behavior: TUI exits and the entire terminal window/tab closes. The shell prompt never gets a chance to render.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

PowerShell 7.6.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions