Skip to content

test(codex): 脱敏选择模态夹具中的临时目录路径 - #2868

Merged
deepcoldy merged 1 commit into
masterfrom
followup-2847-fixture-path
Nov 5, 2026
Merged

deepcoldy merged 1 commit into
masterfrom
followup-2847-fixture-path

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

背景

#2847 合入时带入的真机抓屏夹具(codex-cli 0.164.0 的 tmux capture-pane 与 PTY 字节流)中,cwd 显示为评审机临时目录 /tmp/pi2847,共 9 处、分布在 6 个夹具,另测试注释 1 处。

改动

  • 等长替换为中性路径 /tmp/botmux(pi2847 与 botmux 均为 6 字符 ASCII,PTY 字节流长度、ANSI 序列与屏幕列布局完全不变)。
  • 纯测试夹具/注释改动,不碰 src/。
  • 现有结构断言只识别弹窗结构(footer、选项行、选中标记),不依赖该路径文本;替换后 vitest 与 bun 引擎 test/codex-choice-modal.test.ts 26/26 全绿。

验证

  • bun run test test/codex-choice-modal.test.ts → 26 passed
  • bun test test/codex-choice-modal.test.ts → 26 pass / 0 fail
  • 等长替换,夹具字节总数不变

🤖 Generated with Claude Code

#2847 的真机抓屏夹具含评审机临时目录 /tmp/pi2847,等长替换为中性
/tmp/botmux(ASCII 等长,PTY 字节流与 tmux 抓屏布局不变);结构断言
不依赖该路径,双引擎 26 项仍全绿。纯测试夹具改动。

Co-Authored-By: Claude Code <[email protected]>
@deepcoldy
deepcoldy merged commit 4206673 into master Nov 5, 2026
15 checks passed
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

🚀 Released in v3.57.2

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