Description
nickjvandyke/opencode.nvim#118
This is a big problem because:
- The plugin will auto-connect to orphaned
opencode processes that have no TUI
- Even if I worked around the above, each
opencode process consumes ~500MB of memory
Plugins
none
OpenCode version
1.1.53
Steps to reproduce
- Launch
opencode in a way that gives it a parent process. e.g. Neovim's vim.fn.jobstart or, directly in your terminal, fish -c opencode or (untested, but presumably) bash -c opencode
pgrep -fl opencode to find the parent and opencode PIDs
kill -9 <parent_pid>
pgrep -fl opencode, observe that opencode itself is still running
ps -o ppid= -p <opencode_pid>, observe that opencode's parent PID is now 1
I'm not certain this is directly opencode's fault, but it appeared only recently, and I can't think what would have changed otherwise.
Screenshot and/or share link
Operating System
macOS 15.6.1
Terminal
Ghostty
Description
nickjvandyke/opencode.nvim#118
This is a big problem because:
opencodeprocesses that have no TUIopencodeprocess consumes ~500MB of memoryPlugins
none
OpenCode version
1.1.53
Steps to reproduce
opencodein a way that gives it a parent process. e.g. Neovim'svim.fn.jobstartor, directly in your terminal,fish -c opencodeor (untested, but presumably)bash -c opencodepgrep -fl opencodeto find the parent andopencodePIDskill -9 <parent_pid>pgrep -fl opencode, observe thatopencodeitself is still runningps -o ppid= -p <opencode_pid>, observe thatopencode's parent PID is now 1I'm not certain this is directly
opencode's fault, but it appeared only recently, and I can't think what would have changed otherwise.Screenshot and/or share link
Operating System
macOS 15.6.1
Terminal
Ghostty