Skip to content

CLI takes a while to exit #1550

@ellismg

Description

@ellismg

Describe the bug

When exiting the CLI, there's a noticable delay (2-3 seconds) between when we print session stats and when we actually return you to the terminal.

Affected version

0.0.412-2.

Steps to reproduce the behavior

  1. Launch copilot
  2. Hit CTRL+C, CTRL+C to exit
  3. Observe there's a ~2 second pause between when the stats are printed and when you are returned to your shell.

Expected behavior

This should be faster - there may be some cleanup work that we need to do before existing (shutting down local MCP servers, etc) but we should make it clear what is happening (and maybe delay printing the session stats until the end)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions