Persistent agentd agents currently run with a fixed systemd PATH and do not load workspace direnv/nix environment. In /home/ben/omni/live this causes commands like typecheck.sh to be missing from PATH. Update persistent runtime wrapper to hydrate env from AGENTD_CWD via direnv when .envrc exists, fail with clear error when direnv load fails, and add tests/docs. Verify agentd builds and regenerated wrappers include the behavior.
Committed in 86cb0d0f. Persistent runtime wrapper now runs agent via direnv exec in AGENTD_CWD, and fails with a clear error if .envrc exists but direnv is missing. Updated generated-script tests and Omni/Agentd/SPEC.md docs.
Root cause: persistent agentd sessions run under systemd with a fixed PATH and never hydrate workspace-specific shell env. The runtime wrapper only
cd'd into AGENTD_CWD, so commands added by direnv/nix (e.g. Omni/Ide/typecheck.sh) were unavailable.Implemented fix:
AGENT_PREFIXbootstrap:direnvexists: run agent asdirenv exec "$PWD" <agent>.envrcexists but direnv missing: exit with clear startup errorVerification: