Files
Jyotisha/docs/tasks/PROGRESS-rectification-p0-fix-20260915.md
T
jesse-ux 6bb892b826
Independent Staging Quality Gate / validate (push) Failing after 6m40s
Independent Staging Quality Gate / publish (push) Skipped
fix(chat): keep page.tsx at the 1951-line freeze after lookup wiring
Move BUG-705 bootstrap selection + session lookup into
resolveLookupBootstrap so Home only awaits once. The 1951 cap in
chart-view-route.test.ts is unchanged.
2026-09-15 17:40:17 +08:00

1.9 KiB
Raw Blame History

PROGRESS · page.tsx 增长冻结修复(2026-09-15

  • 执行分支:codex/rectification-p0-fix-20260915
  • 工作树:.worktrees/rectification-p0-fix-20260915
  • 基线:origin/staging @ 4161222b(代码基线 f51e494c

做了什么

把 BUG-705 的 bootstrap 接线从 page.tsx 搬进已有的 resolveLookupBootstrapfrontend/src/lib/home-cloud-sync.ts)。该函数现在自己做 resolveBootstrapSessionSelection + lookup 三分支,page.tsx 只留一次 await 和两个赋值。

三分支语义未改:found 并进列表并选中;missing404)才 SESSION_MISSING_NOTICE 并清 ?c=unavailable 保留 URL,提示「这条对话暂时读不到,请稍后重试。」

没有改 chart-view-route.test.ts1951 上限,没有改 session-lookup-unlisted.test.ts / chat-session-url.test.ts 的任何断言。

page.tsx 行数

换行数
父提交 d3a2c48b 1951
f51e494c 1964
本单 1951

node -e 实测 1951。npx tsx --test tests/chart-view-route.test.ts fail=0。

测试

结果
tsc --noEmit 0 错
npm run lint 0 error / 118 warning(既有)
tests/chart-view-route.test.ts 7/7,含 page.tsx does not grow
tests/session-lookup-unlisted.test.ts 3/3,断言未改
tests/chat-session-url.test.ts 12/12,断言未改
全量 npm test(本机 Windows 3087 条,pass 2998fail 75skipped 14

全量 TAP 里 ok 624 - page.tsx does not grow to host the chart page。本机 fail 75 是 Windows / 无 Docker / SKILL symlink 缺口,不是这条红。Linux 门禁上的目标是 fail 33→32(就少这一条);本机对不上 32/33,不把 75 写成通过。未修另一会话的星历 / 星盘页失败。

未新增 BUG 号。未改 CHANGELOG.md

合入

git push origin HEAD:staging,核对远端 SHA。