fix: stop compose-ps spam after deleting a stack (#1831)

* fix: stop compose-ps spam after deleting a stack

A live logs WebSocket kept calling docker compose ps against the removed
stack directory every 2s. Missing cwd surfaces as spawn ENOENT, which was
logged as Docker CLI unavailable. Skip compose when the dir is gone and
idle the log stream instead of retrying.

* fix: contain stack directory stats inside the compose root

Resolve the stack path against the node's compose directory and refuse
paths that escape it before calling fs.stat, matching the existing
filesystem containment pattern at other sinks.
This commit is contained in:
Anso
2026-08-14 09:24:48 -04:00
committed by GitHub
parent 6a610562a2
commit 4c93947004
4 changed files with 1833 additions and 1631 deletions
File diff suppressed because it is too large Load Diff