feat: add workspace control plane support#343
Merged
liujuanjuan1984 merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
Collaborator
Author
|
本次自审结论如下。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
#332的三阶段 workspace control plane 支持关联 Issues
按模块说明
1. Runtime / Contract / Discovery
workspace_bindingruntime profile,并在 Agent Card、OpenAPI、wire contract 中公开metadata.opencode.workspace.idworkspace-control扩展,声明opencode.projects.*、opencode.workspaces.*、opencode.worktrees.*的方法契约、错误码与返回形状opencode.sessions.*、opencode.providers.*、interrupt callback 等既有扩展补充 workspace metadata 语义2. Routing / Execution
metadata.opencode.workspace.id存在时优先于directorycontext_id语义workspace_id而回归3. Workspace / Worktree Control Plane
workspace_controlJSON-RPC handler,支持:opencode.projects.listopencode.projects.currentopencode.workspaces.listopencode.workspaces.createopencode.workspaces.removeopencode.worktrees.listopencode.worktrees.createopencode.worktrees.removeopencode.worktrees.reset4. 文档与测试
回归验证
./scripts/doctor.sh437个测试通过,coverage91.48%已知边界 / 风险