Skip to content

refactor: 删除发布代码中的 test-only compatibility facades - #141

Merged
tt-a1i merged 3 commits into
openpi-dev:mainfrom
sunsunsun-java:codex/issue-130-remove-test-facades
Aug 26, 2026
Merged

tt-a1i merged 3 commits into
openpi-dev:mainfrom
sunsunsun-java:codex/issue-130-remove-test-facades

Conversation

@sunsunsun-java

Copy link
Copy Markdown
Contributor

Summary

  • remove legacy footer, transcript, and task compatibility facades with no production owner
  • migrate footer and Direct/Workflow transcript tests to the current renderers and shared owners
  • move the scripted subagent stub into excluded test support and guard the package files contract

Validation

  • bun run check
  • bun run test (899 Node tests and 30 Vitest tests passed)
  • npm pack --dry-run --json (152 files; no test-support, stub, test, or spec files)

Closes #130

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

整体方向和实现都没问题,合并态的 focused/full tests、check 和 package dry-run 也都通过了。

有一个小地方请顺手修一下:extensions/subagents/src/ui/takeover.ts 约第 40 行的注释仍说 spinner frames/cadence 定义在 transcript.ts,但本 PR 已改为直接从 shared/spinner.ts 导入。这里请同步成新的真实 owner,避免这次 ownership 清理后留下相反的说明。

除此之外没有发现其他问题。

@sunsunsun-java

Copy link
Copy Markdown
Contributor Author

已修复,感谢指出。takeover.ts 中的注释现已明确 spinner frames 和 cadence 的真实 owner 是 shared/spinner.ts,与当前直接导入关系一致。修复提交为 cf492a8。\n\n已重新验证:\n- bun run check 通过\n- bun run test 通过(899 项 Node 测试及 30 项 Vitest 测试)

@tt-a1i tt-a1i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for removing these test-owned facades and routing coverage through the real owners. I verified that the deleted exports have no repository production consumers, the Direct and Workflow transcript paths still use the shared renderer, and the footer test now exercises renderFooter directly. A clean local integration with current main passes bun run check, 873 Node tests, and 30 Vitest tests. The npm pack dry-run contains no test-support, test, or spec files. No blocking issues from my side.

@tt-a1i
tt-a1i merged commit fbb4b35 into openpi-dev:main Aug 26, 2026
2 checks passed
@sunsunsun-java
sunsunsun-java deleted the codex/issue-130-remove-test-facades branch August 26, 2026 12:20
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.

refactor: 删除发布代码中的 test-only compatibility facades

2 participants