Skip to content

Remote sessions abort when plugin package version is unavailable #215

Description

@dzianisv

Summary

On deployed preview binaries (0.0.0--<timestamp>), new sessions can stop immediately if project .opencode/tool/*.ts imports @opencode-ai/plugin.

Repro

  1. Run opencode serve from a locally-built preview binary (0.0.0--...).
  2. Open a project that has custom tools importing @opencode-ai/plugin.
  3. Start a new chat and submit a prompt.
  4. Session aborts immediately (prompt_async failed).

Evidence

From remote runtime logs for failing session ses_1c24a46caffenVRq79f7DHVoBq:

  • error=Cause([Fail(NpmInstallFailedError (cause: @opencode-ai/plugin: No matching version found for @opencode-ai/plugin@0.0.0--202605181903.))]) background dependency install failed
  • Cannot find module "@opencode-ai/plugin" ... /.opencode/tool/github-pr-search.ts

Expected

If a matching plugin version is unavailable, session startup should not hard-fail. Either:

  • fall back to a compatible plugin version (e.g. latest), or
  • skip broken user tools with a surfaced warning and continue core session execution.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions