Skip to content

CLI session hangs after task completion (intermittent) #405

@BonoJovi

Description

@BonoJovi

Describe the bug

Tasks sometimes complete successfully but the CLI session hangs without returning control to the user. This makes it difficult to determine whether a task is still in progress or has already finished.

Observed behaviors:

  • Sometimes tasks complete and return control normally
  • Sometimes tasks complete successfully but the session hangs/freezes
  • The user has to manually check if the work was actually completed

Example case:
When editing res/tests/TEST_DESIGN.md, the file was fully edited and complete (501 lines, properly structured from beginning to end), but the CLI session did not return control to the user. The task appeared to be "stuck" even though all work was done.

Affected version

0.0.350

Steps to reproduce the behavior

  1. Start an interactive Copilot CLI session
  2. Request a task that involves file editing or other operations
  3. Wait for task completion
  4. Observe that sometimes the CLI returns control, sometimes it doesn't despite the task being complete

Expected behavior

The CLI should consistently return control to the user after task completion, regardless of the task type or result.

Additional context

  • Operating System: Linux
  • The issue is intermittent - same types of tasks sometimes complete normally, sometimes hang
  • When hanging occurs, the actual work is completed successfully
  • This creates uncertainty about whether to wait longer or check manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions