mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 02:17:31 +00:00
An ACP agent's TMPDIR sat inside the data folder. On macOS that path made a socket such as datacloud-mcp-dataAgentKit-antigravityide.sock 131 bytes long, over the 103-byte limit, so child programs could not bind it. When a socket under the data-folder root would not fit, use a short per-user folder in /tmp (mode 0700, owner checked via ensureOwnedPrivateDir, keyed by a hash of the data root so Orca copies never wipe each other), and clear the old data root once. Roots that fit, and Windows, keep the current behavior. Ported from #33948 onto current main (acp-private-temp now uses launchPreparationFailure; daemon-socket-endpoint-path moved under daemon/endpoint/publication; the launch-parity test it touched was removed). Co-authored-by: Manan Chataut <thefrikidude@thefrikidude.local> Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>