Skip to content

Offer Stop for detached background shells in Agent Host chats #341329

Closed

Description

In Agent Host Copilot chats, the Background Shells pill lists both attached and detached background shells. Since #340097, an attached shell can be stopped with Stop Shell in its details, but a detached one can't. Ending a detached dev server or watcher means finding and killing its process outside VS Code.

Offer Stop Shell for detached background shells too:

  • Show Stop for a detached shell whenever the Copilot SDK can stop it: session.rpc.tasks.list reports the shell's process ID, and session.rpc.tasks.cancel stops it.
  • Show a detached shell's details like an attached shell's: the command and its status in the same card, with Stop beside the command, even though there's no live output to show.
  • Make Stop look the same in the editor window and the Agents window.

Stopping a detached shell shouldn't affect the chat's turn, since detached shells don't hold the turn open.

Activity

  1. added
    unreleasedPatch has not yet been released in VS Code Insiders
    insiders-releasedPatch has been released in VS Code Insiders
    and removed
    unreleasedPatch has not yet been released in VS Code Insiders
    on Oct 13, 2026
  2. 84sdyer commented on Oct 14, 2026

    @84sdyer
    • name: Compile & Hygiene
      run: npm exec -- npm-run-all2 -lp core-ci hygiene eslint valid-layers-check define-class-fields-check vscode-dts-compile-check tsec-compile-check test-build-scripts
      env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      NODE_OPTIONS: --max-old-space-size=4096
  3. yunusemresirin commented on Oct 14, 2026

    @yunusemresirin

    I was looking forward for this update. Thanks! 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chat-terminalThe run in terminal tool in chatfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requested

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions