Skip to content

docs(test): 补记 gemini-cli 0.66.0 已复验 GITHUB_SHA 空串绕过脱敏 - #2603

Merged
deepcoldy merged 2 commits into
masterfrom
docs/gemini-066-pin-verify-note
Oct 30, 2026
Merged

deepcoldy merged 2 commits into
masterfrom
docs/gemini-066-pin-verify-note

Conversation

@deepcoldy

@deepcoldy deepcoldy commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

改了什么

在 docs/plans/2026-10-20-test-seam-backlog.md 的「gemini-cli pin bump 前必读」条目补一条复验记录:2026-10-30 随 #2589 把 pin 从 0.65.0 升到 0.66.0 时,已解包 0.66.0 bundle 核对,判定为

isStrictSanitization = !!processEnv["GITHUB_SHA"] || processEnv["SURFACE"] === "Github"

仍是真值判定:SURFACE === "Github" 析取项 0.40 起已存在(此处仅是相较原条目新增提及),与 GITHUB_SHA 空串场景无关;与 0.65.0 相比 sanitizeEnvironment 函数体逐字未变,空串绕过成立(已真机验证 BOTMUX_SESSION_ID / __OWNER_OPEN_ID 在 GITHUB_SHA 空串下正常透传)。

为什么

该条目要求每次 bump pin 前先 grep 复验。把「上次已核到哪个版本、结论如何」回填进去,下次 bump 的人能直接看到最近一次复验结果,不用重复解包;也避免日后只看到「bump 前要查」却不知道 0.66.0 这一跳到底查过没有。

影响面

纯文档 1 行,无 src/、无测试、无 CI 配置改动,不影响任何运行行为。

验证

  • 文档措辞与 0.66.0 npm 包 bundle 实际内容逐字一致;SURFACE 析取项存在性与 sanitizeEnvironment 逐字未变均经独立解包核对(0.35–0.66 共 15 个版本)。
  • 无代码改动,无需 build/测试。

🤖 Generated with Claude Code

#2589 把 core-clis 的 gemini-cli pin 升到 0.66.0,按 test-seam
backlog 中「pin bump 前必读」条目解包 0.66.0 bundle 复验:
isStrictSanitization 仍为真值判定(新增 SURFACE 析取项与空串场景无关),
空串绕过严格脱敏依然成立。把结论和日期回填进该条目,供下次 bump 参考。

Co-Authored-By: Claude Code <[email protected]>
复审指出「新增的 SURFACE 析取项」可能被误读为 0.66.0 才引入;
实测该析取项 0.40 起已存在,此处仅是相较原条目新增提及。
另补记 0.65→0.66 sanitizeEnvironment 函数体逐字相同、真机验证
BOTMUX_SESSION_ID/__OWNER_OPEN_ID 在 GITHUB_SHA 空串下正常透传。

Co-Authored-By: Claude Code <[email protected]>
@deepcoldy

Copy link
Copy Markdown
Owner Author

接续 #2591 的复审意见(自动评审初步备注,最终以维护者审阅为准):#2591 已 squash 合入 master(e01fae4eb,落地 blob d6d944ba4 与审过 head 逐字相同)。复审提出的 4 条 P3 纯措辞项中,P3-1(0.66.0 版本号过期)与 P3-3(判定是含 SURFACE === "Github" 的析取式)已由本 PR 的「复验记录」段覆盖;以下两条本 PR 尚未覆盖,建议 squash 前顺手处理:

  1. (建议改)复验命令照抄跑不通,缺 -r:当前正文写的是 grep -A2 'isStrictSanitization *=' 对「解包后的 bundle」目录执行,实测在 0.65.0 / 0.66.0 解包目录直接跑会 grep: bundle: Is a directory、exit 2;加 -r 才命中(grep -rA2 'isStrictSanitization *=' package/bundle,或改用 rg -A2)。这是 bump pin 时唯一的操作指令,照抄失败会让复验流程在第一步卡住。

  2. (可选)owner 环境变量只写了 legacy 名:症状段列的是 __OWNER_OPEN_ID,但 applySessionOwnerEnv(src/utils/child-env.ts)实际同时注入公开名 BOTMUX_OWNER_OPEN_ID 与 legacy 私有名 __OWNER_OPEN_ID(严格脱敏时两个都会被剥)。建议两个名字都写,避免后来者以为只有旧名存在。

两条都是同一行的文档措辞改动,与本 PR 主题完全同域;不并入也不影响任何行为,可另行 follow-up。

@deepcoldy
deepcoldy merged commit 22d1c8d into master Oct 30, 2026
14 checks passed
This was referenced Oct 30, 2026
@github-actions

Copy link
Copy Markdown

@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。

这次运行覆盖 89a9cea…22d1c8d0b(20 个提交),同批合入的还有 #2546 #2556 #2589 #2591 #2545 #2538 #2595 #2596 #2597 #2581 #2539 #2598 #2515 #2536 #2575 #2366 #2606 #2544 #2593,失败不一定由本 PR 引起。

用例 跑道 状态 失败信息
Kimi basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, the middle column displays a welcome message "欢迎加入群组" (Welcome to the group) and system notifications about group creation and settings, rather than a list o…
Gemini basic bot flow feishu-core-clis failed waitFor timeout: Based on the screenshot, the main content area displays a topic conversation. I can see messages from "Gemini".
Codex DM chat mode replies inline and keeps one session feishu-core-dm-modes-codex failed Feishu Messenger chat list did not load after 4 attempts (URL: https://acn2e4mfbjx2.feishu.cn/next/messenger/, title: 消息 - 飞书). A login redirect means the saved storage state expired; a skeleton list…

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

🚀 Released in v3.56.0

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