fix: redact internal context from share transcripts - #23
Merged
Conversation
z2z23n0
marked this pull request as ready for review
July 23, 2026 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mainline Intent
Intent:
int_771a4a5bStatus:
proposedTitle: 统一脱敏分享页轻量预览与完整对话
What changed
在 Cloudflare Worker 的 transcript 渲染入口统一清理 message、tool input 和 tool output 中的内部上下文,并在 Go 轻量 preview 生成器中补齐 oai-mem-citation 与 turn_aborted 标记。新增回归覆盖 multipart AGENTS/环境上下文、工具记录和 assistant 末尾 memory citation。
Why
点击 Load full conversation 后会绕过已有的 Go preview-only 脱敏,直接解析原始 session;旧 Worker 逻辑只按整条消息前缀过滤,也未清理工具输入输出,导致内部上下文重新出现在分享页。
Decisions
Subsystems: capsule, deploy, share-preview, browser-transcript