Skip to content

Likely cause: Copilot's async bash sessions or detached processes accumulating over time without proper cleanup. Each mode="async" or detach: true command holds a PTY. #1246

@HalfEatenPie

Description

@HalfEatenPie

Describe the bug

Hello,

I only had 4 terminal tabs open. There's a copilot session I've been using for a while running a ton of processes and then suddenly I get these errors:

✗ Re-test shell
  $ pwd
  <exited with error: pty_posix_spawn failed with error: -1 (Unknown error: -1)>

This has been affecting multiple copilot sessions simultaneously. A restart was required to recover.

There might be a bug or a "pty" session not closing correctly.

Thanks.

Affected version

GitHub Copilot v0.0.400

Steps to reproduce the behavior

Not sure how this can be reproduced.

Expected behavior

<exited with error: pty_posix_spawn failed with error: -1 (Unknown error: -1)> For this to not be a problem

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions