agent-orchestrator
agent-orchestrator copied to clipboard
bug(cues): project ZDOTDIR is ignored when loading zsh startup files
A normal project terminal loads the project's ZDOTDIR, but a command Cue in the same project doesn't. Functions and other setup from that directory are missing in the Cue shell.
Repro
- Create a scratch directory with a
.zshrccontaining:function audit_custom_function() { print -r -- AUDIT_FUNCTION_OK; } - Set the project's
ZDOTDIRenvironment variable to that directory. - Run this in an ordinary project terminal and as a command Cue:
whence -w audit_custom_function printf 'ZDOTDIR=<%s>\n' "$ZDOTDIR"
The terminal reports function and the configured path. The Cue reports none and ZDOTDIR=<>. Both should use the project's configuration.
The Cue startup wrapper reads ZDOTDIR from the daemon's environment rather than the project's.
Test notes: Fedora 44, zsh, dd67f2d818. Compared real project-shell output over the terminal WebSocket with output from an invoked Cue. Only scratch configuration was used.