Skip to content

TUI: a deliberate disconnect ends in '✗ error — This operation was aborted' #2817

Closed

Description

@cliffhall

Problem

In the TUI, disconnecting from a Streamable HTTP server with d reaches ○ disconnected. About a second later the card changes to ✗ error, and the Info pane shows:

Error
This operation was aborted

The user asked for the disconnect, so nothing failed. The error state is wrong, and the next c starts from error rather than disconnected.

Reproduce

  1. Start a Streamable HTTP test server: node test-servers/build/server-composable.js --config test-servers/configs/web-tabs-http.json
  2. Point a config file at it: {"mcpServers":{"tabs":{"type":"streamable-http","url":"http://127.0.0.1:6605/mcp"}}}
  3. Run mcp-inspector --tui --config <that file>, press c, wait for ● connected, then press d.

Status sequence seen in a pty: disconnected → connecting → connected → disconnected → error. It happened 3 out of 3 times on both versions below.

Not a 2.13.0 regression

The published 2.12.0 shows the same sequence and the same message, 3 out of 3 times. It was found during the v2.13.0 release smoke (#2816) and doesn't block that release.

Expected

After a user-initiated disconnect, the card stays ○ disconnected. An abort that the disconnect itself caused should not surface as an error. The likely source is an in-flight request or the standalone GET stream rejecting with AbortError after teardown.

Activity

  1. added this to the v2.14.0 milestone on Oct 28, 2026
  2. added
    bug
    v2
    on Oct 28, 2026
  3. cliffhall commented on Oct 28, 2026

    @cliffhall
    MemberAuthor

    Priority score: severity 2 (a misleading error state after a deliberate disconnect; reconnecting works) + urgency 2 (wanted eventually; pre-existing since at least 2.12.0) + bug label +1 + milestone +1 = 6 → Medium.

  4. self-assigned this
    on Oct 28, 2026
  5. modified the milestones: v2.14.0, v2.13.0 on Oct 28, 2026
  6. added a commit that references this issue on Oct 28, 2026
  7. cliffhall commented on Oct 28, 2026

    @cliffhall
    MemberAuthor

    Fixed by #2819, merged into v2/main. Ships in v2.13.0.

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

Metadata

Metadata

Assignees

Labels

bugv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions