fix(session-bridge): put the data-framing note before the events it frames
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 lib/session-bridge/session_bridge.py 开始,比较列出的副本(包括 SSE 路径),找出响应正文的组装位置。阅读 docs/conventions/untrusted-content/README.md 了解 framing 约定,然后添加或查找一个用于验证序列化键顺序的测试。完成标准是:在所有受影响的路径中,序列化后的响应里 note 都位于 events 之前。
由索引模型根据 Issue 内容生成。
描述
Problem
The session bridge's long-poll answer puts the untrusted-content framing note after the events it frames. A model reading the JSON top to bottom meets guest-written text before the line that says to treat it as data.
lib/session-bridge/session_bridge.py:504-505 on main:
body["events"] = events
body["note"] = DATA_NOTE
The same order appears in every copy of the bridge: lib/session-bridge/session_bridge.py, plugins/planning/shared/session_bridge.py (506-507), and the surface/, planning view-bridge, review and work-items view-bridge copies.
Fix
Write note before events in each copy, plus the SSE path if it builds the same body. Add a test that the serialized answer has note ahead of events.
Why
The repo's untrusted-content convention (docs/conventions/untrusted-content/README.md) frames ingested text as data. The frame works best when it comes before the data. Found in a review of the shared interview page as follow-up 21; it was never filed.
Routing: lib/session-bridge changes usually land through the Automation Lanes session.
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 7 小时 57 分钟
- 30 天内合并 PR
- 938
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
priority: medium status: confirmed
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8801 ·
维护者通常 1 天内回复
-
priority: low status: confirmed
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8799 ·
维护者通常 1 天内回复
-
fix(links): make the online link check green (23 errors since 2026-10-11)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭priority: medium
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8730 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: low
难度 2/5 1-3 小时 新手友好度 74/100
melodic-software/claude-code-plugins#8709 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: medium
难度 2/5 1-3 小时 新手友好度 82/100
melodic-software/claude-code-plugins#8708 · 1 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnable可能已有人在做 @dannyward630 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 82/100
yunaremaia/git-api#61 ·
维护者通常 1 天内回复
-
Update nwg-panel to 0.12.3可能已有人在做 @zen0bit 今天认领。 未关闭package-update
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
alunduil/alunduil-chezmoi#963 ·
维护者通常 1 天内回复