Skip to content

Terminal state not restored when exiting with ctrl+c on windows (git bash) #10719

Closed

Description

@Yashxp1

Description

Screen.Recording.2026-01-26.224510.mp4

Environment

  • OS: Windows 11
  • Shell: Git Bash (bash / MINGW64)

Steps to Reproduce

  1. Run opencode from Git Bash
  2. Enter a query and let it start running
  3. Exit the app using Ctrl + C

Expected Behavior

  • The app exits cleanly
  • The terminal state is restored normally

Actual Behavior

  • After exiting with Ctrl + C, the terminal starts printing weird characters (ANSI escape sequences)
  • The terminal tab begins flickering even after the app has exited
  • The issue persists until the terminal tab is completely closed (or manually reset)

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Git bash

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 26, 2026
  2. github-actions commented on Jan 26, 2026

    @github-actions
    Contributor

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

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

  3. Hona commented on Feb 12, 2026

    @Hona
    Member

    this is fixed as of 1.1.60

  4. ruifilipefsilva-create commented on May 16, 2026

    @ruifilipefsilva-create

    this is not fixed, still happening in 1.15.0

  5. formanyreasonzzz commented on Aug 1, 2026

    @formanyreasonzzz

    not fixed at all even at 1.18.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions