本次优化将历史会话的“渗透测试详情/过程事件”从一次性全量加载改为按需渐进式加载:切换历史会话时仅加载消息列表与基础信息,只有在用户点击“展开详情”或展开某条记录时才向后端请求对应的过程详情数据并渲染,从而显著降低首屏 JSON 体积与 DOM 渲染压力,解决历史会话切换卡顿;下载报告仍保持一次性拉取全量数据,不影响页面交互性能。
This optimization changes session history loading from eager, full payload delivery to progressive, on-demand fetching: when switching to a past conversation, the UI loads only messages and metadata, and fetches/render process details only after the user explicitly expands a specific “details” section. This reduces initial JSON size and DOM/rendering cost, eliminating lag when opening history, while keeping report downloads as a one-shot full fetch (no impact on page performance).