test(session): assert the Anthropic prompt template by structure - #2337
Closed
wqymi wants to merge 1 commit into
Closed
test(session): assert the Anthropic prompt template by structure#2337wqymi wants to merge 1 commit into
wqymi wants to merge 1 commit into
Conversation
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
force-pushed
the
chore/scrub-local-machine-info
branch
from
September 4, 2026 16:45
2e3f1dd to
c784df5
Compare
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.
Summary
test/session/system.test.ts:守卫测试改为断言结构标记(# Environment、gitStatus:)加一条绝对家目录路径的正则。原来的示例值不承担断言意义——要证明的是模板里没有渲染过的环境块,结构标记直接说明这件事。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