Skip to content

feature: connect to provider's opencode when it starts #164

@nickjvandyke

Description

@nickjvandyke

Did you check the docs?

  • I have read all the docs

Is your feature request related to a problem? Please describe.

Split from #118

Mostly addressed by the new server selection feature. Prior to that, users were at the mercy of auto-selection.

However, it's slightly inconvenient to start the provider and then have to manually select its server (via require("opencode").select_server()).

Note this only surfaces when other opencodes are already running. If the provider is the only opencode, the plugin will default to it.

Describe the solution you'd like

When the provider starts, the plugin should connect to its opencode server. Pretty safe to assume that's the one the user wants to interact with.

Describe alternatives you've considered

Manually select the server, or start the provider before other opencodes.

Additional context

Relevant PRs:

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