Skip to content

[BUG] Garbled ANSI escape sequences and plugin connection failure with agentmemory #24206

Closed as not planned

Description

@TheWeb3B0y

Description

The OpenCode TUI is failing to maintain a stable connection with the agentmemory plugin. After a connection attempt, the terminal enters a corrupted state where it continuously prints raw SGR mouse mode escape sequences (e.g., [555;27;11M). Even after a restart of the virtual machine and ensuring the port is open, the connection status remains stuck at "connecting but not connected."

Plugins

agentmemory

OpenCode version

1.14.24

Steps to reproduce

Steps to reproduce
Launch OpenCode in a Windows environment (tested in PowerShell and Bash).

Attempt to use the agentmemory plugin.

Observe the "connecting" status message in the UI.

Move the mouse or interact with the terminal; observe the terminal buffer filling with garbled ANSI escape codes.

Note that the connection never completes despite the port being open and the service running.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

PowerShell / Bash

Activity

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

    @github-actions
    Contributor

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

    The garbled ANSI escape sequences (e.g. [555;27;11M) on Windows/PowerShell is a well-known issue. If your problem is specifically about the agentmemory plugin connection failure (not the terminal corruption), that aspect may be distinct - please clarify if so.

  3. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  4. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions