Description
The WorkspaceAdaptor type exported from @opencode-ai/plugin declares a 2-arg create, but opencode's internal control-plane type declares 3 args (with env in the middle) and the call site actually passes 3. Pinned to tag v1.4.11:
Plugin type (missing env) — packages/plugin/src/index.ts:52:
create(config: WorkspaceInfo, from?: WorkspaceInfo): Promise<void>
Control-plane type (with env) — packages/opencode/src/control-plane/types.ts:31:
create(info: WorkspaceInfo, env: Record<string, string | undefined>, from?: WorkspaceInfo): Promise<void>
Call site (passes env) — packages/opencode/src/control-plane/workspace.ts:121:
await adaptor.create(config, env)
Fix
Sync the plugin-facing type with the control-plane type:
- create(config: WorkspaceInfo, from?: WorkspaceInfo): Promise<void>
+ create(
+ config: WorkspaceInfo,
+ env: Record<string, string | undefined>,
+ from?: WorkspaceInfo,
+ ): Promise<void>
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
The
WorkspaceAdaptortype exported from@opencode-ai/plugindeclares a 2-argcreate, but opencode's internal control-plane type declares 3 args (withenvin the middle) and the call site actually passes 3. Pinned to tagv1.4.11:Plugin type (missing
env) —packages/plugin/src/index.ts:52:Control-plane type (with
env) —packages/opencode/src/control-plane/types.ts:31:Call site (passes
env) —packages/opencode/src/control-plane/workspace.ts:121:Fix
Sync the plugin-facing type with the control-plane type:
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response