Skip to content

acp: on Windows, stop() leaves grandchild agent processes running #44

Open

Description

@MScottAdams

Request from Directive, which wants to use Subspace to launch critic agents on Windows.

EXPERIMENT.md:48 notes that on Windows stop() kills only the direct child, so a grandchild can outlive it. For agent adapters this is the common case: npx → node adapter → the agent CLI. On Windows, stopping a session can leave the agent itself running and still holding the workspace.

Directive's open bug for Grok critics killed by a host timeout is the same failure seen from the other side: we need one owner that can spawn, await and reliably kill the whole tree.

Suggested fix: on win32, start the child in a Job Object with kill-on-close, or fall back to taskkill /PID <pid> /T /F in stop()/close(). A test that spawns a grandchild ignoring signals would cover it.

Related: EXPERIMENT.md:237 says Windows test failures don't yet fail CI. Making the Windows job required once this passes would keep it fixed.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions