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
flows: local daemon socket path exceeds SUN_LEN on deep working directories #262
flows run <flow>.flow.yaml fails to start the local daemon when the working
directory is deep enough that <data-dir>/relayflowd.sock exceeds the OS Unix
domain socket path limit (SUN_LEN, ~104 chars on macOS). The failure is a hard daemon_start_failed refusal before any step runs.
This is a first-run papercut: it bites exactly when someone clones the repo (or
an example) into a nested path and tries the canonical flows run … smoke.
Repro
# From a directory where <cwd>/.relayflowd/relayflowd.sock is ~>=104 chars
flows run smoke.flow.yaml
Observed (path length 119 here):
REFUSED [daemon_start_failed] relayflowd exited 1 during startup. Last output in
".../.relayflowd/relayflowd.log":
Error: bind socket .../.relayflowd/relayflowd.sock
Caused by:
path must be shorter than SUN_LEN
Workaround that works today:
flows run --data-dir /tmp/rfd smoke.flow.yaml
relayflows (v1) is unaffected — it does not bind a per-cwd socket this way.
Expected
flows run works regardless of how deep the working directory is, with no flag
and no user action.
Suggested direction
Bind the daemon socket at a short, stable path derived from (but not inside) the
data-dir — e.g. $XDG_RUNTIME_DIR / $TMPDIR + a short hash of the absolute
data-dir path — while keeping the journal / SQLite in the data-dir. The
data-dir → socket mapping must stay 1:1 and stable so connection.json
discovery and the anti-hijack check still work.
Acceptance criteria
flows run and flows resume succeed from a working directory whose <data-dir> path would push a naive <data-dir>/relayflowd.sock past SUN_LEN.
Two data-dirs never collide on the same socket; the same data-dir always
resolves to the same socket.
A regression test constructs a deep data-dir and asserts the daemon binds and
serves.
Context
Surfaced while preparing a zero-setup first-run example for a prospect (Altek).
flows CLI 1.0.6.
Activity
test(live-kernel): route socket path through socketPathFor for #262
fix(sdk): route every socket-path callsite through socketPathFor for #…
fix(daemon): bind the unix socket outside the data dir at a short has…
feat(testdata): promote shakedown scenarios into testdata/shakedown/ (#…