fix(rectification): hold time cards until an offer turn
Keep collecting while a method follow-up can still distinguish candidates, and show adoption cards only after offer-candidates. Align the natal house snapshot with the agent text column. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+36
-4
@@ -4678,10 +4678,10 @@
|
||||
- 根因:表来自 Case 快照、挂在消息列表末尾,却按聊天气泡的起始线排版,标题也只说“本命宫位”。
|
||||
- 修复:宫位表单独放在消息列表后的 `rectification-snapshot`,表面与结果卡同类。标题改为“当前本命宫位”,并写明补充经历后会按新线索重算。时间选择卡不再进这个快照,见 BUG-312。
|
||||
- 验证:`frontend/tests/rectification-agentic-entry.test.ts` 锁定快照容器在 `ChatMessageRow` 之外、不含候选卡、`aria-live`、重算文案,以及成功回合后 `loadCandidate`。
|
||||
- 防复发:宫位表必须在消息气泡外;文案必须说明随新线索重算。不得再用 `--assistant-content-inset` 把它扮成 Agent 正文。
|
||||
- 防复发:宫位表必须在消息气泡外;文案必须说明随新线索重算。列对齐用 snapshot 容器的 `--assistant-content-inset`,不得再用表上的 `padding-inline-start` 把它扮成 Agent 正文。
|
||||
- 相关记录:BUG-307、BUG-310、BUG-312
|
||||
- 复发自:BUG-310(对齐 Agent 正文后更像一条聊天)
|
||||
- 修复版本:待提交
|
||||
- 修复版本:`4d872c68`
|
||||
|
||||
## BUG-312 | 生时纠正时间选择卡在线索未齐时直接出现,且不在 Agent 气泡下方
|
||||
|
||||
@@ -4694,7 +4694,39 @@
|
||||
- 根因:候选卡和宫位表被捆在同一块始终可见的 `rectification-snapshot` 里。宫位表应当随线索更新;时间选择是“可以给出代表性时间”之后的采用动作,应对齐当轮 Agent 回复。
|
||||
- 修复:候选卡只在 `selectionAllowed`、存在最近一条已落地且未失败的 Agent 正文、且当前不 busy/不重跑时,画在该条气泡和操作栏下方。生成中隐藏,避免挂在上一条气泡下。`--assistant-content-inset` 只用于这块卡片,不用于宫位表。
|
||||
- 验证:`frontend/tests/rectification-agentic-entry.test.ts` 锁定候选卡在消息循环内、操作栏之后、快照容器之外,以及 `selectionAllowed` / `latestOfferMessageKey` / `!busy` 门。
|
||||
- 防复发:时间选择卡不得进 `rectification-snapshot`;不得在 `selectionAllowed` 之前或回合生成中显示。宫位表仍是消息外的 live 快照。
|
||||
- 相关记录:BUG-120、BUG-179、BUG-304、BUG-311
|
||||
- 防复发:时间选择卡不得进 `rectification-snapshot`;不得在 `selectionAllowed` 之前、回合生成中、或尚未 `rectification-offer-candidates` 时显示。宫位表仍是消息外的 live 快照。
|
||||
- 相关记录:BUG-120、BUG-179、BUG-304、BUG-311、BUG-313
|
||||
- 复发自:BUG-120(过早出示采用卡);BUG-311(与宫位表捆成始终可见模块)
|
||||
- 修复版本:`4d872c68`
|
||||
|
||||
## BUG-313 | 相邻分钟还分不开时,生时纠正就把时间选择卡提前拿出来
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-08-20
|
||||
- 最近更新:2026-08-20
|
||||
- 影响面:生时纠正候选卡、`next_user_action`、`rectification-offer-candidates`
|
||||
- 用户现象:相对支持度约 34 / 33 / 33 的相邻分钟已经出现“当前可能的出生时间”采用卡。文案自己也说还不能确认唯一分钟,但采用动作已经摆在对话里。
|
||||
- 触发条件:比较已经跑过,引擎 `selection_allowed=true`,方法层仍有 `next_followup`(例如关系/事业还能区分),Agent 还在收集。
|
||||
- 根因:`selection_allowed` 只表示可以采用代表性时间。UI 用它直接画卡;`buildNextUserAction` 也在仍有下一问时把本轮动作写成 adopt,并把 follow-up 推迟。相邻分钟平台因此被当成“现在就选”。
|
||||
- 修复:仍有 `next_followup` 时会话留在收集,本轮继续问;用户停止才走 adopt。界面只在最近一条已落地 Agent 回复完成 `rectification-offer-candidates` 且 `selectionAllowed` 时,把卡片挂在该气泡下方。
|
||||
- 验证:`frontend/tests/rectification-eight-method.test.ts` 锁定“有 follow-up 时 ask、停止才 adopt”;`frontend/tests/rectification-agentic-entry.test.ts` 锁定 offer-candidates 门。
|
||||
- 防复发:`selection_allowed` 不得单独出示采用卡。卡片必须等本轮 `rectification-offer-candidates`。有 `next_followup` 时不得 offer。
|
||||
- 相关记录:BUG-120、BUG-304、BUG-312
|
||||
- 复发自:BUG-120(过早出示采用卡);BUG-312(用 `selectionAllowed` 当出示门)
|
||||
- 修复版本:待提交
|
||||
|
||||
## BUG-314 | 生时纠正宫位表比 Agent 正文更宽、更靠左
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-08-20
|
||||
- 最近更新:2026-08-20
|
||||
- 影响面:生时纠正 `rectification-snapshot`、`RectificationHouseTableView`
|
||||
- 用户现象:当前本命宫位灰卡从对话左缘铺开,比上方 Agent 正文更宽、更靠左,无法和回答左缘对齐成一条竖线。
|
||||
- 触发条件:校正对话出现本命宫位快照。
|
||||
- 根因:宫位表改成消息外的 snapshot 卡后,容器不再吃 `--assistant-content-inset`,仍按整列 `message-list` 铺宽;Agent 正文在头像加 gap 之后。
|
||||
- 修复:snapshot 与候选卡同一列:`width: calc(100% - var(--assistant-content-inset))`,`margin-inline-start` 用同一 inset。表本身保持卡片描边和内边距,不用 `padding-inline-start` 冒充气泡。
|
||||
- 验证:`frontend/tests/rectification-agentic-entry.test.ts` 锁定 snapshot 与候选卡共用 inset 宽度和起始线,且 `.rectification-house-table` 不写 inset。
|
||||
- 防复发:宫位表左缘和宽度必须跟 Agent 正文列一致;inset 只加在 snapshot 容器上。
|
||||
- 相关记录:BUG-310、BUG-311
|
||||
- 复发自:BUG-311(去掉消息缩进后未收回正文列)
|
||||
- 修复版本:待提交
|
||||
|
||||
Reference in New Issue
Block a user