CommandCodeAI / CommandCodeAI/command-code

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

Open
#309 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p1
Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure in Command Code 0.17.9 on macOS using VSCode and zsh by interrupting the internet or closing the lid during a session. Trace the session retry and reconnection handling; done means the session resumes instead of ending with “Error: Connection Error” after five attempts.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, vscode, zsh
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.