Commit Graph

59 Commits

Author SHA1 Message Date
WZBbiao
a4786fd978 merge: 同步 main(5190fead4),解决 sessions:list 冲突
冲突只有一处:`localDb/ipc/sessions.ts` 的 sessions:list 首次加载预热。

- 本分支把 `hiddenSessionRegistry` 扩成 `sessionFlagRegistry`(后台隐藏 + 消息免打扰),
  调用改为 `ensureSessionFlagRegistryLoaded()`。
- main 在同一位置新增 `await sweepLeftoverProvisionalSessions()`,先清残留再读列表。

两侧语义都要保留:既预热标记索引,也等残留未发送任务清完再读列表。

核对:合并结果相对 origin/main 的差异与本 PR 的 49 个文件完全一致(无额外漂移);
migration 无撞号(main 仍止于 0129,本分支 0130)。

验证:provisionalSessions / sessionsPerTaskFlags / sessionsUpdate /
agentIslandSessionPatch / agent-island state+service / notificationService /
desktopConfirmNotice / sessionNotificationMute / SessionTaskMenu / notifier /
migrationReplay / drizzleProxy / botCanonicalSession / sessionAutoTitlePersist /
sessionsRestoreIfArchived / conversationSearch / orcaTeamStore 共 18 个用例文件
(1215 个用例)通过;`pnpm --filter desktop typecheck` 通过。

Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-22 09:33:10 +08:00
liugaowei
0b7075ae46 fix(plugin): 限制在途附件的解码内存
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-21 12:44:31 +08:00
liugaowei
ec97ea6864 fix(plugin): 补齐目标授权与持久投递边界
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-20 10:15:06 +08:00
WZBbiao
5d53bcf35f merge: 同步 main(6a6ad571a),解决 agent-island / sessions / register 的 import 与术语表冲突
Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-20 09:35:04 +08:00
liugaowei
fa8ecb9adc refactor(plugin): 解耦目标查询解析与投递并移除宿主选择器
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-19 18:48:28 +08:00
liugaowei
5d05509e4b feat(plugin): 开放目标选择、投递方式与图片消息接口
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-19 18:30:17 +08:00
GaoWei Liu
216cca16a8 Merge pull request #6209 from makecindy/feature/plugin-task-preferences-opt-out
feat(plugin): 支持插件隐藏默认模型与任务配置卡
2026-10-19 16:40:35 +08:00
WZBbiao
3602339c8d feat(desktop): 任务级「消息免打扰」,单条任务不再发通知
会话右键菜单新增「消息免打扰」:开着的任务不再发系统 toast(含提示音)、
不上 Agent 灵动岛、不推手机、不发飞书;任务内的未读与角标照常,任务照常跑。
菜单项是开关,设过之后文案变成「允许消息通知」。

实现走一个进程内同步索引(原 hiddenSessionRegistry 泛化为 sessionFlagRegistry)
而不是逐事件查库,四道门都在发出侧:

- notificationService 的 notification:show-session-event:桌面 / 手机 / 飞书一次挡住;
- maker-ipc/register 的 shouldNotifyAgentIslandForSession:挡在进岛之前,岛态不进入即无声;
- device-link 的 sendMobileSessionNotify:覆盖代输入等不走会话终态路径的调用方;
- scheduler-host 的 DesktopNotifier:自动化 run 的桌面 / 飞书通道(共享群通知不跟个人静音走)。

数据库加 sessions.notifications_muted(migration 0129,默认 false,存量任务全部按未静音)。

Signed-off-by: WZBbiao <16611004+WZBbiao@users.noreply.github.com>
2026-10-16 20:45:16 +08:00
liugaowei
b32efed5b6 fix(plugin): 将任务配置声明收敛为默认卡片显隐
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 15:56:40 +08:00
liugaowei
cf2a921859 fix(plugin): confirm updates that leave host task settings
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 15:34:40 +08:00
liugaowei
7b212708f9 feat(plugin): 允许插件自行管理任务配置
Signed-off-by: liugaowei <liugaowei@xd.com>
2026-10-16 14:52:55 +08:00
Chris
d7c0187cd6 docs(plugins): document plugin-default model negotiation
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 21:03:24 +08:00
Chris Zhang
97cf41273d fix(pi): preserve per-message plan mode through dispatch (#6074)
* fix(pi): preserve per-message plan mode through dispatch

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): retain plan intent until prompt acceptance

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): prepare plan mode before managed package mutations

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): keep startup usable without plan extension

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): enforce live execution plan state for Forge writes

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): recover unknown plan state before dispatch

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(pi): guard plugin dispatch with live plan state

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 20:30:11 +08:00
Chris Zhang
226c83d31a feat(plugins): 插件单一模型字段与后台隐藏任务 (#6073)
* feat(plugins): single plugin model field and hidden background tasks

Merge the per-ability "Cindy abilities" pickers and the separate task
settings card on the plugin detail page into one "Model & tasks" card
with a single model field. The field defaults to the system auxiliary
model for quick answers (new tasks keep following the originating task)
and, once set explicitly, drives both quick answers and the tasks the
plugin creates. Legacy per-ability quick-answer catalog pins are migrated
once into the plugin task config; media/embedding overrides are dropped
in favour of the system defaults. The stray model tooltip over the row
label is fixed by giving the label its own column.

Add plugin background tasks: plugins declaring `agent.hiddenTasks`
(with `agent.tasks`) can create tasks with `hidden: true` and toggle
them with `tasks.setHidden`. Hidden tasks get `sessions.hidden_at`
(migration 0126) and are excluded from the task list, search, unfinished
hints, notifications and the Agent Island on Desktop and phone; the
plugin detail page lists them under "Background Tasks" where the user
can open them or show them in the task list, and uninstalling reveals
them first.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

* fix(plugins): pin explicit provider, reveal all hidden tasks on uninstall, filter stale list responses

Review follow-ups for #6073:
- Quick answers never switch to another provider's same-named model when
  the user pinned a provider; only a route on that provider is accepted.
- Uninstall reveals every background task in batches instead of only the
  first display page, and fails loudly if a reveal does not take effect.
- The renderer remembers hidden task ids so an in-flight task-list
  response (or a local prepend) cannot re-add a task hidden moments ago.

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Signed-off-by: Lizi <jiali@magiclizi.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-15 19:44:08 +08:00
Chris Zhang
44f78204d5 fix(desktop): unify ordinary session opening and plugin model controls (#5333)
* fix(desktop): unify ordinary session creation for plugins and teammates

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve accepted plugin route across model changes

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* fix(desktop): preserve pending task selections and optional effort

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

* test(desktop): align plugin authority fixtures with shared preferences

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>

---------

Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Co-authored-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-10-01 19:40:55 +08:00
Dash
9127feef4b merge: sync parent Plan and Memory permission fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:58:52 +13:00
Dash
63319e8337 fix(plugins): guard memory access and Plan permission commits
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:50:43 +13:00
Dash
8013b27c1d fix(plugins): sync permission commits and bound native Auto contract
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:14:57 +13:00
Dash
59af390ce9 fix(plugins): serialize complete task permission changes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 15:09:46 +13:00
Dash
2f7215b807 Merge published parent account data access fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 09:08:43 +13:00
Dash
0a774f10bb fix(plugins): restrict account data and reject worker full access
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 08:59:39 +13:00
Dash
caea0d02e6 fix(plugins): resolve delegated directories before final authorization
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 07:25:35 +13:00
Dash
d7769dd5ac merge: sync final Worker authority checks from plugin runtime
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:50:29 +13:00
Dash
68be7616ba fix: retain plugin authority through Worker acceptance and controls
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:41:14 +13:00
Dash
5ac3fd7e37 merge: 同步插件派发前失败结算修复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 06:06:15 +13:00
Dash
dd90bed2c6 fix(plugin): 将派发前拒绝结算为确定失败
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:47:17 +13:00
Dash
f30fa8ca53 merge: 同步父任务运行时的撤权历史边界修复
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:21:48 +13:00
Dash
dbb9a4317e fix(plugin): 保持撤权后在途任务的历史读取边界
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 05:12:59 +13:00
Dash
66b726e51c merge: sync plugin Worker input and completion fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 04:35:33 +13:00
Dash
5226c61f62 fix(plugins): validate Worker input authority and completion evidence
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 04:24:43 +13:00
Dash
5d5c21c625 Merge published task acceptance fix into delegated Auto
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 03:20:42 +13:00
Dash
58f3c08988 fix(plugin-tasks): recheck Worker provenance at input acceptance
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 03:11:24 +13:00
Dash
4e8d933699 Merge plugin runtime creation provenance fix into delegated Auto
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 02:47:58 +13:00
Dash
a93b5881b6 fix(plugins): preserve worker creation ownership across waits
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 02:33:17 +13:00
Dash
c0488f4097 fix(plugins): 同步任务恢复边界并拒绝缺失委派范围的自动授权
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 01:31:12 +13:00
Dash
62117f4179 fix(plugins): restrict task access to account history
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 01:13:38 +13:00
Dash
14c48a8a1d fix(plugins): recheck admission through team activation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 00:54:51 +13:00
Dash
aa02a2f781 fix(plugins): allow retry after unstarted task creation
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-01 00:22:46 +13:00
Dash
38c54351f4 fix: 核验非 Auto 可信 MCP 快捷授权
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-30 23:54:37 +13:00
Dash
d6e1d3cb4c fix(plugins): review delegated scope before trusted MCP shortcuts
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-30 21:11:02 +13:00
Dash
1b473c06f1 fix(plugins): 复核委派授权投影的当前修订
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-30 17:44:28 +13:00
Dash
afe808e662 fix(plugin-auto): recheck authorization after projection reads
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-29 23:44:26 +13:00
Dash
29f26c1dfa fix(plugin-tasks): respect Plan Mode and order completion evidence
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-29 23:36:38 +13:00
Dash
2e96c90534 merge: sync published plugin task snapshot fixes
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-29 00:42:46 +13:00
Dash
62f515ce05 fix(plugins): stabilize task plan and runtime snapshots
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-29 00:07:14 +13:00
Dash
1163d34f17 merge: sync approved plugin uninstall ownership and preserve Auto gates
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 23:55:02 +13:00
Dash
7880566e77 fix(plugin): revoke task ownership on uninstall and refresh run receipts
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 23:46:02 +13:00
Dash
df8c0c4542 fix(auto): 标记旧触发文本恢复来源未验证
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-28 08:35:14 +13:00
Dash
2e75d83fd6 fix: preserve revocations across synthetic history and bound task plans
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 21:30:31 +13:00
Dash
d6891acc15 fix(plugins): preserve human resource boundaries in delegated review
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-09-27 21:30:30 +13:00