Skip to content

bug: exiting tui on windows has improper exit sequence handling #5070

Closed

Description

@rekram1-node

@rekram1-node formating works now.

But there is the problem, when I /exit opencode in the git bash on windows I see this (as I wrote above, this are a mouse events)

Image

This was not in v0.15.x. I need to close and open my git bash.

Originally posted by @somera in #3751

Activity

  1. added
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 4, 2025
  2. changed the title [-]exiting tui on windows has improper exit sequence handling[/-] [+]bug: exiting tui on windows has improper exit sequence handling[/+] on Dec 4, 2025
  3. github-actions commented on Dec 4, 2025

    @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.

  4. somera commented on Dec 17, 2025

    @somera

    When this will be fixed?

  5. blank038 commented on Dec 19, 2025

    @blank038

    The issue has been reproducible since v1.0.127, I first encountered it when upgrading from v1.0.126 to v1.0.127.
    Initially, I thought it was a software conflict on my end, but I later confirmed the problem by switching back to v1.0.126, which works normally.
    As of v1.0.169, this issue still persists.

    Supplement: The /exit command operates successfully, while employing Ctrl + C precipitates the aforementioned issue. This phenomenon was observed within a test environment consisting of PowerShell integrated with opencode v1.0.185.

  6. SamuelMiller commented on Jan 16, 2026

    @SamuelMiller

    I get the same issue on Windows 11. Opencode crashes and then the terminal starts to spit out characters as shown on the above image.

  7. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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 opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions