Skip to content

test(session): assert the Anthropic prompt template by structure - #2337

Closed
wqymi wants to merge 1 commit into
mainfrom
chore/scrub-local-machine-info
Closed

test(session): assert the Anthropic prompt template by structure#2337
wqymi wants to merge 1 commit into
mainfrom
chore/scrub-local-machine-info

Conversation

@wqymi

@wqymi wqymi commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • test/session/system.test.ts:守卫测试改为断言结构标记(# EnvironmentgitStatus:)加一条绝对家目录路径的正则。原来的示例值不承担断言意义——要证明的是模板里没有渲染过的环境块,结构标记直接说明这件事。
  • src/skill/builtin/.bundle/deep-research/SKILL.md:删掉「Alternative: scripted workflow」一节。它引用的脚本不随仓库发行,对任何安装都执行不了。
  • test/cli/tui/session-list-visibility.test.ts:fixture 标题改用 /tmp/...,与同文件已有的 /tmp/decoy.md 一致。
  • AGENTS.md:补一条约定,示例值统一用合成形式。

Verification

  • bun typecheck(packages/opencode)通过
  • bun test test/session/system.test.ts test/cli/tui/session-list-visibility.test.ts test/skill:105 pass

@wqymi wqymi changed the title chore: keep local-machine information out of the repo test(session): assert the Anthropic prompt template by structure Sep 4, 2026
The sample values were doing no work: what the guard needs to say is that the
template carries no rendered environment block at all, which the structural
markers plus a home-path regex state directly.

Also drops the deep-research scripted-workflow section, whose script ships with
no installation, and uses /tmp paths in the TUI fixture.
@wqymi
wqymi force-pushed the chore/scrub-local-machine-info branch from 2e3f1dd to c784df5 Compare September 4, 2026 16:45
@wqymi wqymi closed this Sep 4, 2026
@wqymi
wqymi deleted the chore/scrub-local-machine-info branch September 4, 2026 16:46
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