统一会话展示与专家路由行为,修复图片异步显示与气泡宽度问题。

本次移除 image 专家角色并同步更新路由/绑定/测试,同时增强 session-bootstrap 的共享与角色分层记忆加载,减少刷新依赖并提升默认可用性。

Made-with: Cursor
This commit is contained in:
oliver 2026-04-29 22:16:49 +08:00
parent 1ebfa47dd3
commit d5e30542aa
19 changed files with 199 additions and 62 deletions

View file

@ -244,7 +244,7 @@ def build_expert_catalog_block(*, include_main: bool = False, per_field_limit: i
def discover_specialist_ids_from_workspaces(
*,
base_order: tuple[str, ...] = ("generalist", "ops", "image", "memory"),
base_order: tuple[str, ...] = ("generalist", "ops", "memory"),
) -> tuple[str, ...]:
cache_key = (expert_workspace_signature_token(), tuple(str(x).strip().lower() for x in base_order if str(x).strip()))
with _CACHE_LOCK:
@ -283,7 +283,7 @@ def warm_expert_workspace_cache() -> None:
def specialist_registry_snapshot(
*,
base_order: tuple[str, ...] = ("generalist", "ops", "image", "memory"),
base_order: tuple[str, ...] = ("generalist", "ops", "memory"),
) -> tuple[dict[str, Any], ...]:
"""Single source of truth for runtime specialist discovery and metadata."""
ordered = discover_specialist_ids_from_workspaces(base_order=base_order)

View file

@ -1,5 +0,0 @@
{
"display_name_en": "image",
"display_name_zh": "图片",
"role": "expert"
}

View file

@ -1,11 +0,0 @@
你是图像专家(image specialist)。
## 输入约束:
- 任务可能是生成、编辑、抠图、扩图或风格迁移。
## 执行规则:
1. 明确任务类型(生成、编辑、抠图、扩图等)和约束条件。
2. 结果描述需结构化,包含主体、风格、构图、色彩与质量要求。
## 输出格式:
- 直接给可执行提示词或操作步骤,避免空泛审美描述。