Skip to content

fix: preserve notification comment navigation and refresh stale comments#12

Open
momofa wants to merge 1 commit into
lovedevpanda:mainfrom
momofa:fix/notification-comment-navigation
Open

fix: preserve notification comment navigation and refresh stale comments#12
momofa wants to merge 1 commit into
lovedevpanda:mainfrom
momofa:fix/notification-comment-navigation

Conversation

@momofa

@momofa momofa commented Jun 22, 2026

Copy link
Copy Markdown

问题

从通知列表在当前窗口打开评论链接时,客户端导航可能过早清理 highlight
导致 URL 定位参数和评论高亮丢失。新窗口完整加载通常正常。

AI/Worker 刚写入回复时,客户端 Router Cache 还可能返回旧帖子内容,
导致用户收到通知后点击却看不到新回复。

修复

  • 等目标评论完成定位后再清理 highlight
  • 保留其他查询参数和评论 hash
  • 通知点击改为完整页面导航,绕过陈旧的客户端 Router Cache
  • 标记评论通知已读时重新验证对应帖子的评论缓存
  • 保留 Ctrl/Command 点击和新窗口打开行为

验证

  • 当前窗口点击通知可正确定位并高亮评论
  • 新窗口打开行为正常
  • AI 回复通知点击后可立即看到新评论
  • URL 保留评论 hash 和其他查询参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant