fix(home): stop silent rectification open after login (BUG-599)
Bare `/` was treating the latest history session as active, so a returning account could auto-open a failed rectification Case and left-align the starter home. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9286,3 +9286,19 @@
|
||||
- 复发自:无
|
||||
- 修复版本:待发布
|
||||
|
||||
## BUG-599 | 回访登录自动打开生时校正并挤歪首页
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-09-09
|
||||
- 最近更新:2026-09-09
|
||||
- 影响面:登录后首页、`resolveBootstrapSessionSelection`、生时校正 Case open、`.welcome` 布局
|
||||
- 用户现象:以前登录过的账户一进首页,主栏内容挤到左边;用户未点任何入口就出现「校正服务暂时不可用」。
|
||||
- 触发条件:登录落到 `/`(没有 `?c=`)。会话列表第一项是历史生时校正;该会话列表不带消息,校正会话又跳过消息水合。
|
||||
- 根因:bootstrap 把 `sessions[0]` 当成当前会话。校正会话会在 prepare 阶段自动 `POST /api/rectification/cases/open`。打开失败时 catch-all 文案是「校正服务暂时不可用」,并画在首页卡片下方。同时 `.conversation.is-empty` 要求 `messagesHydrated`,校正会话保持 false,首页 1040px 容器没有水平居中。
|
||||
- 修复:仅当地址栏 `?c=` 指向该校正会话时才自动打开。默认 `/` 落地改到空咨询会话(没有则新建)。`.welcome` / `.starter-list` 增加 `margin-inline: auto`;空校正会话在未打开 surface 时也使用 `is-empty`。
|
||||
- 验证:`frontend/tests/home-bootstrap-reveal.test.ts`、`frontend/tests/rectification-surface-contract.test.ts`、`frontend/tests/session-conversation-layout.test.ts`。
|
||||
- 防复发:裸 `/` 不得因最近一条历史是生时校正就调用 Case open;首页居中不得依赖校正会话的 `messagesHydrated`。
|
||||
- 相关记录:BUG-027、BUG-034
|
||||
- 复发自:无
|
||||
- 修复版本:待发布
|
||||
|
||||
|
||||
Reference in New Issue
Block a user