Files
cindy/packages/plugin-protocol/src
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
..
2026-09-07 22:19:04 +08:00