Skip to content

fix(ucampus UI): prevent stale monitor status after switching course or unit - #245

Merged
07xh merged 2 commits into
mainfrom
fix/ucampus-monitor-ui-stale-config-20261123
Nov 23, 2026
Merged

07xh merged 2 commits into
mainfrom
fix/ucampus-monitor-ui-stale-config-20261123

Conversation

@07xh

@07xh 07xh commented Nov 23, 2026

Copy link
Copy Markdown
Owner

问题

U校园服务器只读监控 UI 虽然对直接进度核验使用请求序号,但“启用自动核验/首次 tick/刷新恢复状态”仍会无条件将较早请求的响应写入当前页面。快速切换课程或单元时,新页面可能显示旧作用域的状态,旧异步回调也可能覆盖新的 busy 状态。

修改

  • 监控配置、首次只读 GET 和手动查询状态使用独立递增请求序号及课程/单元作用域。
  • 切换课程或单元使旧响应失效;返回晚的配置结果不会覆盖新页面。已发送的配置请求不在本地假装撤销。
  • 清理旧异步 busy/错误展示,避免界面一直卡在读取中。
  • 新增 3 项前端契约测试。

无心跳协议、速率或服务器进度写入改动;等待完整 CI。

@07xh
07xh merged commit 36498b6 into main Nov 23, 2026
3 checks passed
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