Skip to content

test(app-shell): pin that a failed feed read does not carry over to another record (#30145) - #30173

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-30145-feed-failure-navigation-pin
Nov 5, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-30145-feed-failure-navigation-pin

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #30145

维护者速读

  • 改了什么:给记录详情页的"动态/评论读取失败"提示补了一组测试,确认切换到另一条记录时不会带着上一条记录的失败提示。没有改产品代码。
  • 为什么改:record page: a failed comments or attachments read (500) shows as 「暂无评论」 and an empty attachment count; only a refusal is flagged, so a server error is silent #29188 已经上线了失败提示和重试;本卡剩下的验收句是"读取失败期间切换记录,错误不能带到新记录",此前没有测试钉住。
  • 风险与回滚:只改一个测试文件,无运行时影响;回滚即还原该文件。
  • 先看:ui/packages/app-shell/src/views/RecordDetailView.feedLoadFailure-29188.test.tsx 的新 describe 块和顶部 rig 的两处小扩展(byRecord、failGet 的 object@record 写法)。
  • 两分钟验证:在仓库 ui/ 目录运行 pnpm exec vitest run packages/app-shell/src/views/RecordDetailView.feedLoadFailure-29188.test.tsx,预期 14 个用例全绿。
  • 需要你做的:无,席位落地(本 PR 测试-only,请席位给 skip-changeset)。

What changes

Adds a top-level describe to the existing #29188 pin file (per the shared-harness ruling) with four cases that change the record on a mounted RecordDetailView, the way the Console and the drawers do (swap recordIdOverride, no remount):

  1. Record A settled on a comments failure; record B answers empty: B shows the empty state, no notice, no Retry.
  2. Record A failed on both streams; record B answers with rows: B draws its rows and no notice.
  3. A's page read is still outstanding when B is opened, B settles, then A's failure lands late: B stays clean (payload path).
  4. Same late-settle order on the direct sys_comment read path.

The rig gains byRecord (per-record page answers) and an object@record form of failGet.

Tests

  • Pin on current main (no product change): 14 passed (14); the 4 new cases are green.
  • Reverse check (mutation, then restored, git diff HEAD empty afterwards): made the feed verdict read any record's failed verdict instead of the current record's. All 4 new cases went red, the 10 older cases stayed green. Direction observed: red (expected). The pin can fail; main simply has no carry-over, because the feed verdict is already keyed by record.
  • pnpm --dir ui exec vitest run scripts/ passed; the derived gate families passed (see the report on the card).

Acceptance notes

Verification

Run on the final head with the shared verify lock: the file above, 14 of 14 passed.


Generated by Claude Code

…tion to another record

Claude-Session: https://claude.ai/code/session_01QSeKYnE9YNkSZen7sijLA3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the size/m label Nov 4, 2026
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 4, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#2 · os-justin · session_01QSeKYnE9YNkSZen7sijLA3

维护者速读

席位意见:ACCEPT。测试在 main 上直接通过,说明不存在这个问题;dev 做了反向变异(4 红),证明测试抓得住。

席位核对

  • Verdict: ACCEPT · Head-sha: a6ca401f75da71e2b67785e37b1e7452670b4e4d · 2026-11-04T20:39Z
  • 形态:draft → main,Fixes #30145 为唯一闭合关键词。
  • 前提实测:分诊收窄 6639036009;dev 实测钉子在 main 上绿,故无源码改动。
  • 门禁:ci-failure --pr 30173 GREEN,55 项完成、0 失败(Check Changeset 首跑在挂标签前,已被同 head 绿结果取代)。
  • 范围与 changeset:PR 只改一个 .test.tsx(席位亲核文件清单)+ dev 报告称纯测试,两者俱备,席位已挂 skip-changeset。
  • 接受的偏差:check:type-check-debt 本地超时 NOT MEASURED,CI 绿覆盖;测试夹具扩了 object@record 匹配,限同文件。
  • 落地条款:非受管、≤3000 行 ⇒ 席位落地;另欠维护者在席位会话授权落地(见 A disabled action's disabledReason tooltip has no max width: on a phone-width viewport the reason runs off-screen #29954 上的分类器拒绝记录)。

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 5, 2026 00:36
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 5, 2026 00:36
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit 2eadbe2 Nov 5, 2026
60 of 61 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-30145-feed-failure-navigation-pin branch November 5, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Record page shows 「暂无评论」 / "No comments yet" when the comment or activity read fails

1 participant