agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

bug(cues): project ZDOTDIR is ignored when loading zsh startup files

Open codebanditssss opened this issue 1 month ago • 0 comments

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

  1. Create a scratch directory with a .zshrc containing:
    function audit_custom_function() { print -r -- AUDIT_FUNCTION_OK; }
    
  2. Set the project's ZDOTDIR environment variable to that directory.
  3. 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.

codebanditssss avatar Oct 06 '26 18:10 codebanditssss