Skip to content

Stopping the first ACP client’s Linux scope kills the shared daemon and cancels another client #68

Open

Description

@bermudi

What happens

On Linux, the first devin acp client in a clean test environment starts the shared daemon inside its own systemd scope. A second client in a separate scope relays to that daemon. If the host stops the first scope as part of ordinary cleanup, the second client's active prompt is cancelled even though the host has not stopped the second scope or sent a cancellation request to the second session.

Reproduction

Tested on Linux x86_64 with systemd 262.2 and Devin CLI 3000.13.4, with a separate Devin data directory and no pre-existing daemon:

  1. Launch A with systemd-run --user --scope --unit=devin-acp-repro-a.scope -- devin acp. Initialize ACP and create a session.
  2. Launch B the same way in devin-acp-repro-b.scope. Initialize ACP and create a separate session. Both clients relay to the same daemon PID, which /proc/<pid>/cgroup shows in A's scope.
  3. Send B a prompt that executes a foreground curl request to a local HTTP endpoint. Hold the HTTP response after receiving the request so B is demonstrably working.
  4. Send session/close to A, terminate A's launcher and run systemctl --user stop devin-acp-repro-a.scope. Do not stop scope B or cancel B's session. Release the HTTP response.

Observed: B's session/prompt returned stopReason: "cancelled", with its client transport still open. In separate control runs, A's session/close, stdin EOF, and SIGTERM to A's launcher alone each left B running. With --process-model in-process on both launches, no daemon was started and B returned end_turn and the response marker after the same scope teardown.

Expected: Shutting down one per-client process scope should not cancel an independent client's session. Is it intentional for the shared daemon to inherit the first ACP client's scope? If daemon mode expects different process ownership, should the Devin ACP Registry entry explicitly select in-process mode for registry clients?

This is a real CLI and systemd reproduction, not a claim that ordinary ACP disconnects cancel unrelated clients.

Related T3 integration report: pingdotgg/t3code#38327

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