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
The staged reply host loads its scripts from the build checkout, not the baked runtime #67
The staged reply host loads its supervisor and worker scripts from the checkout its binary was compiled in, not from the baked runtime.
resolve_auto_reply_supervisor in src/commands/auto_reply/runner.rs tries, in order:
$ALDEN_AUTO_REPLY_RUNTIME_ROOT/scripts
<binary dir>/scripts
<binary dir>/../libexec/scripts
env!("CARGO_MANIFEST_DIR")/scripts
The session service starts the stable binary at <state-root>/../bin/alden-cli with HOME, PATH, TMPDIR and ALDEN_CONFIG only (_runtime_env in scripts/auto-reply-service.py). Nothing sets the runtime root, and _stage_stable_binary creates only bin/, so candidates 1 to 3 never match and candidate 4 wins.
Why it matters
A git pull, a branch switch or an edit in that checkout changes the scripts under a running host without a bake. AGENTS.md says production runs a baked, frozen copy.
The runtime the packager stages and pins by digest is not the one the CLI runs.
Deleting or moving the checkout stops the host.
The rename in refactor!: rename openkakao to Alden, with one release of compatibility #66 made this visible: an old binary cannot drive the renamed scripts, so a pull under a running pre-rename host stops its sends. docs/migrating-from-openkakao.md works around it by building in a separate checkout.
Suggested fix
auto-reply-service.py passes the runtime root of the release it runs from, so candidate 1 points at the staged scripts.
A release build drops the CARGO_MANIFEST_DIR fallback, or keeps it for debug builds only.
A test starts the CLI from a staged layout and asserts which scripts directory it resolved.
Until then, the rule in AGENTS.md stands: work in your own clone or worktree, and never pull or edit in a checkout you did not create.
Activity