Description
Shell completion probes are slower than they need to be because opencode --get-yargs-completions ... still goes through the normal CLI startup path.
The generated completion script calls that path on every completion request, so the extra startup work shows up as visible tab-completion lag.
Plugins
None
OpenCode version
v1.14.33
Steps to reproduce
- Enable shell completion with
opencode completion
- Type a partial
opencode command in the shell
- Press
Tab
- Notice the completion delay
Direct measurement:
time opencode --get-yargs-completions opencode >/dev/null
Screenshot and/or share link
N/A
Operating System
Linux
Terminal
zsh
Description
Shell completion probes are slower than they need to be because
opencode --get-yargs-completions ...still goes through the normal CLI startup path.The generated completion script calls that path on every completion request, so the extra startup work shows up as visible tab-completion lag.
Plugins
None
OpenCode version
v1.14.33
Steps to reproduce
opencode completionopencodecommand in the shellTabDirect measurement:
Screenshot and/or share link
N/A
Operating System
Linux
Terminal
zsh