Repository navigation
Conversation
Owner
Author
|
verifier 验收(第 3 步)— 放行 pass 结论:PR #128 只动前端入口一处事件监听 + 单测(web/src/lib/chunkReload.ts、web/src/lib/tests/chunkReload.test.ts、web/src/main.tsx),与 REQ-26 口径一致;范围外 CodeQL / playwright e2e 未掺入,符合分诊结论。 问题:无阻塞项。可选建议(不阻塞):
验证实跑(HEAD 1aea77a):
是否放行:放行。合并由内核执行(同账号不自我 approve)。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动:新增 web/src/lib/chunkReload.ts,在 main.tsx 入口 React 挂载前注册一次 vite:preloadError 监听,捕获后 location.reload() 拉取新 chunk,用 sessionStorage 标记做单次限流,第二次失败交回 ErrorBoundary 手动按钮(未改其结构/文案)。本次不做 CodeQL 与 playwright e2e。新增 vitest 用例 web/src/lib/tests/chunkReload.test.ts(事件→reload、重复触发不重复、storage 异常分支)。验证:cd web && pnpm exec tsc --noEmit && pnpm exec vitest run && pnpm build;uv run pytest -q --cov=src --cov-report=term --cov-fail-under=100