Did you check docs and existing issues?
Operating system/version
MacOS 26.2 (macos Tahoe)
:checkhealth opencode output
============================================================================== opencode: 2 ⚠️ opencode.nvim ~ - ✅ OK nvim version: 0.12.0-dev+g8754118213. - ✅ OK opencode.nvim git commit hash: f87e18f32a6451cc9dff6400b7bd36be842adf88. - ✅ OK vim.g.opencode_opts: { provider = { enabled = "snacks", tmux = {} } } opencode.nvim [binaries] ~ - ✅ OK opencode available with version 1.1.25. - ✅ OK curl available. - ✅ OK pgrep available. - ✅ OK lsof available. opencode.nvim [snacks] ~ - ✅ OK snacks.input is enabled: ask() will be enhanced. - ✅ OK blink.cmp is available: opts.ask.blink_cmp_sources will be registered in ask(). - ✅ OK snacks.picker is enabled: select() will be enhanced. opencode.nvim [providers] ~ - ✅ OK Configured opencode provider: snacks. - ✅ OK The snacks provider is available. - ⚠️ WARNING The kitty provider is not available — KITTY_LISTEN_ON environment variable is not set. - ADVICE: - Enable remote control in kitty. - ⚠️ WARNING The wezterm provider is not available — wezterm executable not found in $PATH. - ADVICE: - Install wezterm and ensure it's in your $PATH. - ✅ OK The tmux provider is available. - ✅ OK The terminal provider is available.
Describe the bug
This issue was introduced by PR #128, which added a pgrep argument that is invalid on my system.
When I try to run command manually pgrep -lfa 'opencode' | grep '[-]-port' 2>/dev/null || true, It returns the following "illegal option" error:
pgrep -lfa 'opencode' | grep '[-]-port' 2>/dev/null || true
pgrep: illegal option -- a
Usage: pgrep [-filLnvVx] [-d <delim>] [-g <pgrplist>] [-G <gidlist>] [-P <ppidlist>] [-t <termlist>] [-u <euidlist>] [-U <uidlist>] [<pattern>]
My installed pgrep version is
[I] agustiawan@agustiawan-silverbox ~/.con/nvim (main *%)> pgrep -V
pgrep (proctools 0.4pre1) http://proctools.sourceforge.net
[I] agustiawan@agustiawan-silverbox ~/.con/nvim (main *%)> which pgrep
/opt/homebrew/bin/pgrep
Related code:
https://github.com/NickvanDyke/opencode.nvim/blob/f87e18f32a6451cc9dff6400b7bd36be842adf88/lua/opencode/cli/server.lua#L44-L47
Steps To Reproduce
Run OpenCode.ask with any prompt
Expected Behavior
Run as expected
Did you check docs and existing issues?
Operating system/version
MacOS 26.2 (macos Tahoe)
:checkhealth opencodeoutput============================================================================== opencode: 2⚠️ opencode.nvim ~ - ✅ OK ⚠️ WARNING The ⚠️ WARNING The
nvimversion:0.12.0-dev+g8754118213. - ✅ OKopencode.nvimgit commit hash:f87e18f32a6451cc9dff6400b7bd36be842adf88. - ✅ OKvim.g.opencode_opts: { provider = { enabled = "snacks", tmux = {} } } opencode.nvim [binaries] ~ - ✅ OKopencodeavailable with version1.1.25. - ✅ OKcurlavailable. - ✅ OKpgrepavailable. - ✅ OKlsofavailable. opencode.nvim [snacks] ~ - ✅ OKsnacks.inputis enabled:ask()will be enhanced. - ✅ OKblink.cmpis available:opts.ask.blink_cmp_sourceswill be registered inask(). - ✅ OKsnacks.pickeris enabled:select()will be enhanced. opencode.nvim [providers] ~ - ✅ OK Configuredopencodeprovider:snacks. - ✅ OK Thesnacksprovider is available. -kittyprovider is not available — KITTY_LISTEN_ON environment variable is not set. - ADVICE: - Enable remote control inkitty. -weztermprovider is not available —weztermexecutable not found in$PATH. - ADVICE: - Installweztermand ensure it's in your$PATH. - ✅ OK Thetmuxprovider is available. - ✅ OK Theterminalprovider is available.Describe the bug
This issue was introduced by PR #128, which added a pgrep argument that is invalid on my system.
When I try to run command manually
pgrep -lfa 'opencode' | grep '[-]-port' 2>/dev/null || true, It returns the following "illegal option" error:My installed pgrep version is
Related code:
https://github.com/NickvanDyke/opencode.nvim/blob/f87e18f32a6451cc9dff6400b7bd36be842adf88/lua/opencode/cli/server.lua#L44-L47
Steps To Reproduce
Run OpenCode.ask with any prompt
Expected Behavior
Run as expected