agent-orchestrator
agent-orchestrator copied to clipboard
bug(cues): literal tabs in commands are consumed by zsh completion
A command Cue loses literal tabs inside quoted text when the shell is zsh.
Repro
Save and run this as a command Cue, replacing <TAB> with an actual tab character:
printf '%s\n' 'left<TAB>right' > output.txt
The file contains leftright\n, not left\tright\n. The Cue returns success, and running the same command directly with zsh -fc preserves the tab.
Expected bytes: 6c6566740972696768740a
Actual bytes: 6c65667472696768740a
Cues pass command text through SendMessage. The interactive shell treats the tab as a completion key rather than command data.
Test notes: Fedora 44, zsh, dd67f2d818. Reproduced repeatedly through the real Cue API and checked against the output file. Other shells weren't verified.