Skip to content

Shell completion probes run full CLI startup and feel slow #25692

@luojiyin1987

Description

@luojiyin1987

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

  1. Enable shell completion with opencode completion
  2. Type a partial opencode command in the shell
  3. Press Tab
  4. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions