Skip to content

fix(web): waiting_input run 应答面板自动出现(SSE 关闭后重拉 interventions) - #42

Merged
vlln merged 1 commit into
developfrom
fix-web-interventions-reload
Aug 3, 2026
Merged

fix(web): waiting_input run 应答面板自动出现(SSE 关闭后重拉 interventions)#42
vlln merged 1 commit into
developfrom
fix-web-interventions-reload

Conversation

@vlln

@vlln vlln commented Aug 3, 2026

Copy link
Copy Markdown
Owner

问题(BL-057 手测发现)

run 在运行中时打开详情 → run 进入 waiting_input(SSE 流关闭)→ 应答面板不自动出现;切换到其他 run 再切回来才显示。

根因

App.tsx 中 interventions 只在 selectedId 变化的 effect 里拉取。SSE onState('closed') 刷新 detail 时只更新 detail/fileChanges,没有重拉 interventions——run 恰好在 SSE 关闭时变 waiting_input 时,面板数据为空(显示 No prior requests)。

修复

SSE onState('closed') 刷新 detail 后:若新状态为 waiting_input / 可 respond / 带 interventions,立即拉取 interventions 并 setInterventions(与选中 effect 同逻辑)。

测试

新增回归测试:run 从 running(SSE 打开)→ emit stream_end → detail 重取变 waiting_input → 断言 '1 pending request' 面板出现 + interventions 请求已发。66 前端测试全过。

附带

前端已重新构建并同步 static,本机 web 已重启提供新构建。

@vlln
vlln merged commit 1fec642 into develop Aug 3, 2026
5 checks passed
@vlln
vlln deleted the fix-web-interventions-reload branch August 3, 2026 03:42
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