Skip to content

On closure terminal becomes window becomes bugged #6136

Closed as duplicate
Closed as duplicate

Description

@R5dan

Description

After exiting opencode, whenever you move your mouse over the screen text like this starts to be entered into the terminal

[555;85;24M[555;83;25M[555;81;25M[555;80;26M[555;78;26M[555;77;27M[555;76;27M[555;75;28M[555;74;28M[555;74;29M[555;73;29M[555;73;30M[555;74;31M[555;74;32M[555;75;32M[555;75;33M[555;75;34M[555;75;35M[555;74;36M[555;74;37M[555;73;37M[O[I[555;83;37M[555;81;37M[555;80;37M[555;78;36M[555;76;34M[555;74;33M[555;72;32M[555;70;31M[555;69;30M[555;68;29M[555;67;28M[555;66;27M[555;66;26M[555;66;25M[555;65;25M[555;65;24M[555;65;23M[555;65;22M[555;64;22M[555;63;22M[555;64;22M[555;65;21M[555;66;20M[555;67;19M[555;68;17M[555;69;16M[555;69;15M[555;70;14M[555;71;12M[555;72;11M[555;73;10M[555;74;9M[555;75;8M[555;76;7M[555;77;7M[555;78;6M[555;79;6M[555;80;6M[555;81;5M[555;82;5M[555;83;5M[555;84;5M[555;86;5M[555;87;5M[555;89;5M[555;90;5M[555;91;5M[555;92;5M[555;94;5M[555;95;5M[555;96;5M[555;97;6M[555;98;6M[555;99;6M[555;100;6M[555;99;7M[555;98;8M[555;97;8M[555;97;9M[555;96;9M[555;96;10M[555;95;10M[555;94;11M[555;93;11M[555;93;12M[555;92;12M[555;91;13M[555;90;13M[555;90;14M[555;89;14M[555;88;14M[555;88;15M[555;88;14M[555;89;13M[555;90;12M[555;91;11M[555;92;10M[555;93;10M[555;94;9M[555;94;8M[555;95;8M[555;95;7M[555;96;7M[555;96;6M[555;97;5M[555;98;4M[555;98;3M[555;99;3M[555;99;2M[555;100;1M

This seems like ANSI coloring.

OpenCode version

1.0.198

Steps to reproduce

  1. open opencode in the default terminal
  2. close terminal
  3. move mouse around on screen

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows terminal, Cursor terminal, VSCode terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 24, 2025
  2. github-actions commented on Dec 24, 2025

    @github-actions
    Contributor

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

    These issues all describe similar symptoms: ANSI escape codes and mouse event data appearing in the terminal after exiting OpenCode, particularly on Windows systems. The root cause appears to be improper terminal state cleanup during the exit sequence.

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

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