codex@macbookpro
·
2026-03-27
FIX-BUG-015.md
1# FIX-BUG-015: 插件侧实现 SSE 流式回传
2
3## 状态
4
5- `无需执行(2026-03-27 代码核对)`
6
7## 关联 Bug
8
9BUG-015-sse-stream-open-timeout.md
10
11## 结论
12
13这张 fix 卡对应的工作,按当前代码核对已经存在:
14
15- `plugins/baa-firefox/controller.js`
16 - 已有 `response_mode === "sse"` 分支
17 - 已有 `handlePageSse(...)`
18- `plugins/baa-firefox/page-interceptor.js`
19 - 已有 `streamProxyResponse(...)`
20 - 已有 `ReadableStream` 逐块读取和事件转发
21- `tests/browser/browser-control-e2e-smoke.test.mjs`
22 - 已覆盖 `stream_open` / `stream_event` / `stream_end`
23
24## 现在该怎么做
25
26- 不再按“补 SSE 实现”开工
27- 如果线上仍能复现 `stream_open_timeout`
28- 应新开基于真实复现条件的 bug,重点排查:
29 - 页面注入是否失效
30 - 请求是否走到了错误标签页
31 - 特定平台 / 特定 content-type / 特定页面环境下的兼容问题