From 2567242e2fe6c35cbd91abe6ceb042adb7ef27e4 Mon Sep 17 00:00:00 2001 From: fxd-jason Date: Wed, 13 May 2026 20:30:53 +0800 Subject: [PATCH] test: widen _trySteer capture windows for steer indicator code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _showSteerIndicator function added before _trySteer extends the total capture region. Widen helper_body 1500→2000 and try_body 1200→1600 so assertions on cmd_steer_fallback and S.pendingFiles=[] still land within the window. --- tests/test_1062_busy_input_modes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_1062_busy_input_modes.py b/tests/test_1062_busy_input_modes.py index bb7514d2..3da04f6c 100644 --- a/tests/test_1062_busy_input_modes.py +++ b/tests/test_1062_busy_input_modes.py @@ -106,7 +106,7 @@ class TestSlashCommandHandlers: # The shared helper must contain the fallback path helper_idx = COMMANDS_JS.find("async function _trySteer(") assert helper_idx >= 0, "_trySteer helper must exist" - helper_body = COMMANDS_JS[helper_idx:helper_idx + 1500] + helper_body = COMMANDS_JS[helper_idx:helper_idx + 2000] assert "queueSessionMessage" in helper_body assert "cancelStream" in helper_body # Toast should differ from interrupt to signal it's the steer path @@ -139,7 +139,7 @@ class TestSlashCommandHandlers: # cmdSteer delegates to _trySteer; that helper clears pendingFiles idx_try = COMMANDS_JS.find("function _trySteer(") assert idx_try >= 0, "_trySteer not found" - try_body = COMMANDS_JS[idx_try:idx_try + 1200] + try_body = COMMANDS_JS[idx_try:idx_try + 1600] assert "S.pendingFiles=[]" in try_body, ( "_trySteer must clear S.pendingFiles in its fallback path — " "without this, files are lost on steer→interrupt fallback"