Skip to content

The socket connection was closed unexpectedly. #1670

Description

@pishguy

Description

Title

Mimo repeatedly fails to connect to the API with "The socket connection was closed unexpectedly"

Description

Describe the bug

Mimo continuously fails to connect to the API and repeatedly displays the following error:

Cannot connect to API: The socket connection was closed unexpectedly.
[retrying in 14s, attempt #14]

The error persists after multiple retry attempts, and Mimo never establishes a stable connection to the API.

Expected behavior

Mimo should connect to the API successfully and maintain a stable connection.

Additional context

  • My internet connection is working normally.
  • Other tools and extensions, including OpenCode, work without any problems in the same environment.
  • The issue appears to be specific to Mimo or its API connection handling.
  • The error occurs repeatedly during use.

Environment

  • OS: macOS
  • Mimo version: MiMoCode 0.1.5
  • VPN/proxy: No

Error log

Cannot connect to API: The socket connection was closed unexpectedly.
For more information, see the logs.
[retrying in 14s, attempt #14]

Could you please investigate whether this is related to the API connection, WebSocket/socket handling, proxy configuration, or retry logic?

Plugins

No response

MiMoCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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