Skip to content

改进 Stepwise 刷新控制和回答检测#1283

Open
0xTotoroX wants to merge 1 commit into
BigPizzaV3:mainfrom
0xTotoroX:feature/stepwise-refresh-controls
Open

改进 Stepwise 刷新控制和回答检测#1283
0xTotoroX wants to merge 1 commit into
BigPizzaV3:mainfrom
0xTotoroX:feature/stepwise-refresh-controls

Conversation

@0xTotoroX

Copy link
Copy Markdown
Contributor

背景

Stepwise 目前主要依赖自动扫描来更新建议内容。在聊天切换、长对话、DOM 虚拟化或建议内容不理想时,自动扫描可能无法立刻刷新到当前回答对应的建议。

这个 PR 增加一个手动刷新入口,并让最新 assistant 回答的定位更稳,方便用户主动重新生成当前回答的 Stepwise 建议。

改动

  • 在 Stepwise 面板标题栏增加刷新按钮,用于重新生成当前回答的建议。
  • 刷新时清理当前回答对应的缓存,并重新请求 /stepwise/generate
  • 当聊天正在生成或已有 Stepwise 请求进行中时,禁用刷新按钮,避免重复请求或误触发。
  • 增强 assistant 消息检测逻辑,支持从虚拟化的 assistant bubble 中定位最新回答。
  • 当检测到 assistant 回答变化时,先清空旧建议,避免跨聊天或跨回答残留。
  • scan:* diagnostics 增加去重逻辑,减少重复扫描日志,同时保留 scan:not-ready 等原有语义。

@0xTotoroX 0xTotoroX marked this pull request as ready for review July 1, 2026 07:01
@0xTotoroX 0xTotoroX force-pushed the feature/stepwise-refresh-controls branch from 08ea495 to 99c05c0 Compare July 2, 2026 07:27
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