Skip to content

feature: easier way to just specify the server endpoint #190

@marcelbeumer

Description

@marcelbeumer

Did you check the docs?

  • I have read all 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:

  1. Start opencode with opencode serve --port because without --port the plugin won't detect the process
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions