CommandCodeAI / CommandCodeAI/command-code

The session has been destroyed

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

Nobody has claimed this yet.

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

Description

Summary

✖ CRITICAL: Uncaught Exception!
This is an unexpected error. Please file a bug report at https://github.com/CommandCodeAI/command-code/issues/new
✖ ERROR → Error
ℹ REASON → The session has been destroyed
ℹ ERROR STACK ↓
Error [ERR_HTTP2_INVALID_SESSION]: The session has been destroyed
at ClientHttp2Session.request (node:internal/http2/core:1813:13)
at requestStream (node:internal/deps/undici/undici:8763:26)
at writeH2 (node:internal/deps/undici/undici:8883:16)
at Object.write (node:internal/deps/undici/undici:8355:18)
at _resume (node:internal/deps/undici/undici:9749:54)
at resume (node:internal/deps/undici/undici:9682:7)
at node:internal/deps/undici/undici:9503:32

Trace ID: 25be7b1ac5c17e2a496f3eb5ac1c61d1

Expected Behavior

Command Code coding.

Actual Behavior

Command Code crashing.

Steps to reproduce the issue

nil. Happens randomly

Command Code Version

1.50.0

Operating System

macOS

Terminal/IDE

vscode

Shell

powershell

Session file (optional)

No response

Fix prompt (optional)

No response

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

Start by tracing the request path around ClientHttp2Session.request, requestStream, and writeH2 in the Node.js/undici stack, then inspect how Command Code manages HTTP/2 sessions. Try to capture the random failure on macOS with version 1.50.0; done means requests no longer crash when a session has been destroyed.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.