#6382: fix(cli): silence Powerlevel10k Zsh warning from completion script
Cluster:
CLI Enhancements and Fixes
Fix issue #6357
Suppress stderr when using openclaw completion.
The stderr output:
```
(node:291720) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
```
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the zsh installation snippet written into `~/.zshrc` to redirect stderr for the `openclaw completion --shell zsh` process substitution, suppressing Node’s `DEP0040` deprecation warning during shell startup/completion loading. The change is localized to `src/cli/completion-cli.ts` where the install command assembles the `source <(...)` line for zsh profiles.
<h3>Confidence Score: 4/5</h3>
- This PR is low-risk and likely safe to merge, with the main concern being reduced debuggability due to blanket stderr suppression.
- The change is a one-line modification to the zsh completion install command; it doesn’t affect runtime CLI behavior outside of the installed shell snippet. The primary trade-off is that redirecting all stderr may hide legitimate errors when generating completion.
- src/cli/completion-cli.ts
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#12308: fix(cli): redirect log output to stderr during completion script ge...
by mcaxtr · 2026-02-09
80.9%
#9148: Fix: Speed up shell completion generation from ~4.6s to <200ms
by vishaltandale00 · 2026-02-04
80.9%
#17325: fix(completion): avoid zsh compdef error when compinit is not initi...
by ephelia-ai · 2026-02-15
79.4%
#18938: fix(completion): avoid compdef error in zsh by guarding completion ...
by gcsenyan · 2026-02-17
79.3%
#13840: perf(cli): skip plugin loading during completion generation
by lailoo · 2026-02-11
79.3%
#6694: fix: Cache completion install
by s0up4200 · 2026-02-01
79.3%
#17437: fix(completion): avoid rc=1 for optionless zsh leaf commands
by ephelia-ai · 2026-02-15
79.0%
#20553: fix(completion): guard zsh compdef call for environments without co...
by mr-sk · 2026-02-19
78.6%
#22488: fix(cli): redirect plugin logs to stderr during completion
by pierreeurope · 2026-02-21
78.6%
#11165: fix(cli): filter empty flags in zsh and PowerShell nested completion
by Yida-Dev · 2026-02-07
77.8%