boardx / boardx/workspacex

chat: 组织未发布 persona 画布模板时,画像生成能力可用但入口不可达(建议 chip 完全由模板库驱动)

Open
#3,061 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
1h 7m
Merged PRs (30d)
969

Description

## 现象
自 #2825 起,chat 的建议 chip 全部来自 `recommendCanvasTemplates`(组织**已发布**的画布模板库)。而 `summarizePersonaFromThread` 在组织从未发布 `persona` 模板时会回退到 `DEFAULT_PERSONA_TEMPLATE`——后端能力照常工作,前端却没有任何入口能触发它。19 个内置模板按 F15 V1 的规则**不**自动回填到未配置的组织,所以新组织/未配置组织默认就处于「能力在、入口没有」的状态。

## 证据
- chat-read e2e 组织只有一个模板(`chat-read-e2e-canvas`),页面快照建议行只有「生成会话画布验收模板」,画像 chip 永远不出现(#3000 评论,run 34191848662 产物)。
- `persona-summary.ts` 的 `DEFAULT_PERSONA_TEMPLATE` 回退与之矛盾。

## 现状处理
- PR #3060 通过生产回填路径给 e2e 组织种内置 `persona` 模板,让 spec 测「已配置组织」的真实路径——这是夹具修正,不是本缺口的修复。

## 要做的(产品)
让画像建议入口不依赖模板库是否有 `persona` 行:要么建议层对「有默认模板兜底的能力」单独列入口,要么内置画像模板对所有组织默认可见(与 F15 V1 的规则需要人类协调)。附组件/单元测试:模板库为空时画像入口仍可达。

对应 37 条路径计划:C 组(画像 → mindmap 落库)。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with persona-summary.ts and the recommendation layer that reads recommendCanvasTemplates. Check the existing chat-read e2e evidence and related component or unit tests, then choose the agreed behavior for organizations without a published persona template. Done means the persona suggestion remains reachable with an empty template library and the added tests cover that case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.