Workspace drivers could only be injected by the embedding host through
`OpenCode.create({ workspaceProviders })`. The driver registry is now a
transformable State (same pattern as artifact providers), and plugins get an
`experimental.workspace` domain with `transform` (add/remove a driver),
`providers`, `create`, `provision` and `destroy`. Host-provided drivers remain
the base state; the latest active plugin registration for a name wins and
disposing it restores the previous driver.
State.create gains a `scope: "global"` option so a global registry is not
closed by a Location shutdown batch. The Environment file types move to
`@opencode/plugin/effect/environment-files` so plugin drivers can type their
`connect` result; core re-exports them.
Verified: `bun typecheck` in core, plugin and sdk; `bun test
test/embedded.test.ts` in sdk (plugin-registered driver provisions a
workspace); `bun test test/workspace*.test.ts` in core.
Reverts the lock from #60315 that ignored user, project and remote overrides on providers the Console supplies. It also blocked harmless overrides such as model limits, names and variants (#60597) and internal gateways.
Brings the desktop beta work into dev as a merge commit, so its history is kept.
Core, server and client changes from beta were backported to dev one PR at a time
first (#59081 to #59107).
Left out of this merge, so dev keeps its current behaviour:
- Generated UI, entirely: the plugin-genui package, its core registration and
publishing, the session-ui surfaces, charts, form replies and streaming tool
input, the app setting and its strings, tool-input delta publishing, and their
tests. It lands on dev later through its own pull request.
- The `ast-grep-ignore: no-star-import` comment in cross-spawn-spawner.ts,
which lint:effect-patterns still needs.
Notes:
- Dev-channel builds now use their own service-dev.json, port and
opencode-dev.db (#58331), so dev-build users start on a fresh database.
- #56550 (plugin instruction entries) and #57527 (untracked folder rows) come
in as on beta; follow-ups go to dev.
- Docs from beta are pointed at check-test.yml, after the workflow rename.
- #59132's fix (settings toggles MCP servers in the session's location) is
ported onto beta's rewritten Extensions page, and #59131's browser title test
joins beta's tab tests.