r/opencode • u/demagician10 • 21d ago
Closing OpenCode Desktop didn't stop the background service so I wrote a plugin that does
The OpenCode desktop app runs a shared background service, and closing the window doesn't stop it. It keeps running with everything it spawned, and it respawns MCP servers on every boot, so the CPU never actually goes quiet. There's no setting for it, only a manual
service stop.My plugin fixes exactly that: close the app → the plugin runs
service stop→ nothing OpenCode-related is left running. No build step, no dependencies, drop a file in~/.config/opencode/plugins/.https://github.com/CodeMody/opencode-stop-on-quit
Tested on Windows. macOS/Linux should work, i can't test on mac and will test it tomorrow on my main linux pc.
14
u/NecessaryButFatal 21d ago •
This is a feature, not a bug. We want that behavior.
5
u/CYCLONOUS_69 21d ago
Just use OpenChamber - You don’t know what you are missing yet
1
u/Emotional-Bag-3754 21d ago
"Serviço em segundo plano" Lil bro
5
u/SPEZ_IS_A_JABRONI 21d ago
you're fixing something that isn't broken
1
u/zeamp 21d ago
That’s going to kill the new “inbox” theme down the road.
1
u/DEAD1nsane 21d ago
but background processes are usually nice, and will stop when your task is finished? lol. if you got no task running then what are you stopping?
and if you got a task running why are you closing it?
1
u/dumbasPL 21d ago
You'll be deleting that sooner than you realize ;)
1
u/YogurtclosetStreet58 21d ago
Bro invented a solution for not a problem
1
u/[deleted] 21d ago
[removed] — view removed comment