You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stopping the first ACP client’s Linux scope kills the shared daemon and cancels another client #68
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:
Launch A with systemd-run --user --scope --unit=devin-acp-repro-a.scope -- devin acp. Initialize ACP and create a session.
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.
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.
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.
Activity