Skip to content

"Error: Connection Error" facing when Internet Connection goes out #309

Open

Description

@ahmadawais

Imported from CommandCodeAI/command-code#3 — originally opened by @zainzafar90 on 2026-03-05T10:51:08Z

Expected Behavior

It should resume the session without any issues, like other agent terminals, so I think there's something that's not resolved as retries are happening

Actual Behavior

As soon as I disconnect the laptop from external screen, or close the lid while session is still on, or the connection with internet breaks, I see this error, even though it tries to reconnect but after 5 attempts it fails with this error

Image

Command Code Version

0.17.9

Operating System

macOS

Terminal/IDE

VSCode

Shell

zsh

Additional context

No response

Activity

  1. ahmadawais commented on May 4, 2026

    @ahmadawais
    MemberAuthor

    Comment by @ahmadawais on 2026-03-05T16:17:39Z

    Thanks for the report. @asharirfan @saqibameen check.

    When there's no net, it should do this, @zainzafar90 what are the exact steps that other agents are able to recover from and not cmd?

  2. ahmadawais commented on May 4, 2026

    @ahmadawais
    MemberAuthor

    Comment by @zainzafar90 on 2026-03-05T16:22:52Z

    Thanks for the report. @asharirfan @saqibameen check.

    When there's no net, it should do this, @zainzafar90 what are the exact steps that other agents are able to recover from and not cmd?

    cmd recovers already 50% of the time already, so seems like some corner case

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions