Skip to content

Bug: desktop dev/new workspace flow fails when preview channel contains slash #16224

@anduimagui

Description

@anduimagui

Description

Running desktop dev from a preview branch whose name includes a slash, such as opencode/lucky-forest, can generate a non-semver preview version string. That invalid version can break plugin dependency installs while starting desktop dev and new workspace flows.

Plugins

Built-in plugin install path for @opencode-ai/plugin dependency resolution.

OpenCode version

Preview builds generated from branch channels, for example 0.0.0-opencode-lucky-forest- after sanitization and the previous slash variant before this fix.

Steps to reproduce

  1. Check out a branch name containing a slash, for example opencode/lucky-forest.
  2. Run bun run dev:desktop from the repository root.
  3. Let predev build derive preview version from the branch channel.
  4. Start a new workspace flow in desktop and observe plugin dependency install behavior.

Screenshot and/or share link

N/A

Operating System

macOS

Terminal

zsh

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions