Summary
On macOS (at least), if ~/.copilot_here.sh is symlinked into a dotfiles repo (common setup), accepting the startup update prompt (or running --update) appears to succeed but the script content/version does not update. New terminal sessions then source the old script and continue to show the old version.
Environment
- OS: macOS
- Shell: zsh (or bash)
- Install style:
~/.copilot_here.sh symlinked to a dotfiles-managed file (e.g., ~/.copilot_here.sh -> ~/dotfiles/.copilot_here.sh)
- Update channel:
cli-latest
Steps to reproduce
- Create a symlink:
ln -s ~/dotfiles/.copilot_here.sh ~/.copilot_here.sh
- Start a new terminal that sources
~/.copilot_here.sh
- Run
copilot_here or yolo and accept the update prompt
- Open a new terminal window
Expected behavior
- The update process updates the target file that
~/.copilot_here.sh points to (symlink is preserved).
- After update, new terminal sessions load the updated file and show the new version.
Actual behavior
- After update, the contents of the symlink target do not change (version remains old), so new terminals load the old content.
- In some cases the update may silently fail to persist the new script (leaving the old file unchanged).
Acceptance criteria
Notes
PowerShell update uses a content-write approach (Set-Content) already, so this bug is specific to the bash/zsh updater implementation.
Summary
On macOS (at least), if
~/.copilot_here.shis symlinked into a dotfiles repo (common setup), accepting the startup update prompt (or running--update) appears to succeed but the script content/version does not update. New terminal sessions then source the old script and continue to show the old version.Environment
~/.copilot_here.shsymlinked to a dotfiles-managed file (e.g.,~/.copilot_here.sh -> ~/dotfiles/.copilot_here.sh)cli-latestSteps to reproduce
ln -s ~/dotfiles/.copilot_here.sh ~/.copilot_here.sh~/.copilot_here.shcopilot_hereoryoloand accept the update promptExpected behavior
~/.copilot_here.shpoints to (symlink is preserved).Actual behavior
Acceptance criteria
~/.copilot_here.shas a symlink,copilot_here --updateupdates the symlink target and does not break the symlink.~/.copilot_here.shas a symlink, accepting the startup auto-update updates the target and a new terminal shows the new version.Notes
PowerShell update uses a content-write approach (
Set-Content) already, so this bug is specific to the bash/zsh updater implementation.