test(auto-decide): ask for the selected mode in the skill's mode handoff line, not a separate public decision

This commit is contained in:
garrytan committed 2026-09-30 22:02:15 +00:00
1 parent 005352ddc7
commit 0b62c51ddb
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ mock.module(path.join(root, 'test/helpers/claude-pty-runner.ts'), () => ({
// the observer must declare its audit interface before any model starts.
expect(fs.readFileSync(path.join(opts.cwd, 'PLAN.md'), 'utf8')).toBe(opts.initialPlanContent);
expect(opts.initialPlanContent).toMatch(/full selected mode name[\\s\\S]*user_choice and recommended/);
expect(opts.initialPlanContent).toContain('public decision');
expect(opts.initialPlanContent).toContain("in the skill's\\nnormal mode handoff line");
expect(opts.initialPlanContent).toContain('No review mode has\\nbeen selected.');
expect(opts.initialPlanContent).not.toMatch(/HOLD SCOPE|SCOPE EXPANSION|SELECTIVE EXPANSION|SCOPE REDUCTION/);
const run = (bin, args) => execFileSync(path.join(root, 'bin', bin), args, {