From 4874bedbeffee98330104db4381d40e024bfecc0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 20 Apr 2026 23:58:17 +0000 Subject: [PATCH] Modify UserSimulator prompt to prefer 'Allow for this session' for execution prompts --- packages/cli/src/services/UserSimulator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/services/UserSimulator.ts b/packages/cli/src/services/UserSimulator.ts index 96a7d49324..0b1a9d5d9d 100644 --- a/packages/cli/src/services/UserSimulator.ts +++ b/packages/cli/src/services/UserSimulator.ts @@ -161,7 +161,8 @@ STATE 4: Any other situation where the agent is waiting for text input or needs CRITICAL RULES: - RULE 1: If there is ANY active spinner (e.g., ⠋, ⠙, ⠹, ⠸, ⠼, ⠴, ⠧) or an elapsed time indicator (e.g., "0s", "7s") anywhere on the screen, the agent is STILL WORKING. Your action MUST be . Do NOT issue commands, even if a text prompt is visible below it. - RULE 2: If there is an "Action Required" or confirmation prompt on the screen, YOU MUST HANDLE IT (State 2). This takes precedence over everything else. -- RULE 3: You MUST output a strictly formatted JSON object with no markdown wrappers or extra text. +- RULE 3: If prompted to allow execution of a command with options like 'Allow once' and 'Allow for this session', you MUST choose the option for 'Allow for this session' (typically by sending '2\\r'). +- RULE 4: You MUST output a strictly formatted JSON object with no markdown wrappers or extra text. JSON FORMAT: {