Skip to content

dev-server-sandbox: delete leftover sandbox roots after a killed run #7871

Open

Description

@ThomasK33

A killed scripts/dev-server-sandbox.ts run skips its cleanup, because the script removes its mux-dev-server-* root only on a clean exit. In the Cursor plugin program (#7858) a killed sub-agent run left the copied providers.jsonc, which holds API keys, in /tmp.

Proposed mechanism: write the pid into each sandbox root, and at the next sandbox start delete every root whose pid is dead. Consider making --clean-providers the default when an agent runs the script, since most live checks call no model.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions