Skip to content

feat(sidebar): group workers for registered collaboration plugins - #2647

Merged
Tioit-Wang merged 3 commits into
mainfrom
feat/2645-plugin-gated-collaboration-sidebar
Nov 29, 2026
Merged

Tioit-Wang merged 3 commits into
mainfrom
feat/2645-plugin-gated-collaboration-sidebar

Conversation

@Tioit-Wang

@Tioit-Wang Tioit-Wang commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary / 概要

1/3 · 桌面宿主:可注册的侧栏协作层级。 原来 durable worker 和主会话平铺,只有 hover 能查创建者。新增数据型 contributes.sessionCollaborationSidebar: true。插件未注册、初始化中、失效、停用或项目不在启用范围时,列表保持平铺;宿主不向插件传输关系数据。

在当前页内,父子双方的有界创建记录匹配才缩进一级。展开/打开是不同按钮;折叠后仍显示失败或待授权计数,并可直接进入相应会话。父项缺失、超范围、归档、置顶和远程会话不会因推测关系而消失。没有改变 SessionSummary 或协作工具的权限。

Requirement link / 需求关联

Verification

  • Windows / Node 22.19 / Electron 43.6;base 44b06ef0c468,候选 58c42fc9f124,pnpm check:pr-base 通过。
  • SDK manifest、Rust 安装校验、主窗口 IPC、加载状态和真实 Electron 侧栏路径;侧栏及关联既有回归 159 项通过;Desktop typecheck/build、lint、i18n key checks 通过。
  • 候选:test:e2e(23 passed,2 个需真实模型的场景未运行)、test:e2e:collaboration、test:e2e:boot、sidebar-collaboration-user-path.test.mjs 通过。

Follow-up

2/3 为消息区原生卡片及受限插件数据分组:Desktop #2648。3/3 由官方插件 PR #4注册侧栏及卡片。此 PR 单独合并不会为未声明的插件开启层级。

文档补充提交 0693fe4d4dfe 仅调整 ADR 结构与索引。pnpm docs:check、pnpm docs:build 及此 head 的 7 项 GitHub 检查均通过。

Keep ordinary sessions flat unless a loaded, in-scope plugin opts in.
Use bounded host creation links, not titles or plugin-provided trees, so
folding a group never removes access to a worker that needs attention.

Refs #2645
Record the opt-in and fallback trade-offs in the standard ADR sections
so the decision is discoverable in the published documentation.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: ac721b0
Status: ✅  Deploy successful!
Preview URL: https://d69c3666.pi-desktop.pages.dev
Branch Preview URL: https://feat-2645-plugin-gated-colla.pi-desktop.pages.dev

View logs

@Tioit-Wang
Tioit-Wang merged commit e72105d into main Nov 29, 2026
7 checks passed
Tioit-Wang added a commit that referenced this pull request Nov 29, 2026
…2648)

* feat(chat): add native session context and data-only plugin groups

Keep branch history, recorded changes, and Task delegations available
without extensions. A single pane-width-aware card links to each native
destination without forcing a narrow conversation into another column.

Plugins can add bounded text groups through their own process. Bind
reads and navigation to the selected session and load generation so
switching sessions or unloading a plugin cannot replay stale actions.

Refs #2646

* feat(sidebar): group workers for registered collaboration plugins (#2647)

* feat(sidebar): group workers only for registered collaboration plugins

Keep ordinary sessions flat unless a loaded, in-scope plugin opts in.
Use bounded host creation links, not titles or plugin-provided trees, so
folding a group never removes access to a worker that needs attention.

Refs #2645

* docs(sidebar): index the worker hierarchy decision

Record the opt-in and fallback trade-offs in the standard ADR sections
so the decision is discoverable in the published documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant