fix(cli): preserve shell profiles when completion install fails (#117987)

* fix(cli): publish completion profiles atomically

Closes #117980

* fix(ci): restore environment variable budget

* fix(cli): preserve dangling completion profile symlinks

* fix(cli): narrow completion readlink failures
This commit is contained in:
Peter Steinberger
2026-08-02 06:36:43 -07:00
committed by GitHub
parent 3748fcfd2c
commit d720d78fee
8 changed files with 212 additions and 54 deletions
+2
View File
@@ -40,6 +40,8 @@ The install writes a small `# OpenClaw Completion` block into your shell profile
| powershell | `~/.config/powershell/Microsoft.PowerShell_profile.ps1` (on Windows: `Documents/PowerShell/Microsoft.PowerShell_profile.ps1`, or `Documents/WindowsPowerShell/...` for Windows PowerShell) |
| zsh | `~/.zshrc` |
Profile changes are staged beside the destination and atomically replace it only after a complete durable write. A failed install leaves an existing profile unchanged.
## Notes
- Without `--install` or `--write-state`, the command prints the script to stdout.