From d3d22339cc4b16ea9ced2222459556b6d1063b47 Mon Sep 17 00:00:00 2001 From: Hunter B Date: Fri, 12 Jun 2026 01:34:25 -0700 Subject: [PATCH] test(prompt): pin runtime prompt stand-still rule Keep the #3061 runtime-policy wording covered so lone turns remain explicitly barred from starting edits, shell commands, git commits, or sub-agent launches without user input. Report-by: yekern <13691766+yekern@users.noreply.github.com> --- crates/tui/src/prompts.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/tui/src/prompts.rs b/crates/tui/src/prompts.rs index d7d95c39..564eb34a 100644 --- a/crates/tui/src/prompts.rs +++ b/crates/tui/src/prompts.rs @@ -1700,6 +1700,13 @@ mod tests { ), "Runtime Policy Reference must explain the per-turn tag format" ); + assert!( + text.contains("When this tag is the only new content in a turn") + && text.contains("do not initiate new edits, shell") + && text.contains("git commits, or sub-agent launches") + && text.contains("wait for the user's next message"), + "Runtime Policy Reference must pin the #3061 runtime-prompt-only guard" + ); assert!( text.contains("### Modes"), "Runtime Policy Reference must contain the Modes section"