Did you check the docs?
Is your feature request related to a problem? Please describe.
I like to run my opencode in a sandbox with opencode serve. Maybe on http://127.0.0.1:4069, maybe elsewhere. I notice the plugin tries to be smart about running servers, but right now to make this work I need to do:
- Start opencode with
opencode serve --port because without --port the plugin won't detect the process
- Add a configuration block for
require("opencode.terminal").start|toggle on with ("opencode attach http://127.0.0.1:4096") instea of ("opencode --port")
And I guess it won't work with opencode instances on other hosts at all.
Why not just provide and endpoint via the config, and when its empty, try to start a own server (or not; i can start my own)? No smart process finding, etc.
Describe the solution you'd like
Provide and endpoint via the config, and when its empty, try to start a own server (or not; i can start my own)? No smart process finding, etc.
Describe alternatives you've considered
Not much
Additional context
No response