Keep busy-slash regressions aligned with /yolo support
This commit is contained in:
parent
61ddf4d21e
commit
707a19e34c
3 changed files with 4 additions and 2 deletions
|
|
@ -910,7 +910,8 @@ async function send(){
|
|||
if(!S.session){await newSession();await renderSessionList();}
|
||||
// Busy-control slash commands must be intercepted HERE, before the
|
||||
// busyMode routing block, so the user can always type /steer, /interrupt,
|
||||
// or /queue while the agent is running and have them execute immediately.
|
||||
// /queue, /terminal, /goal, or /yolo while the agent is running and have
|
||||
// them execute immediately.
|
||||
// Without this intercept they fall through to the queue and execute after
|
||||
// the current turn ends — by which point there is no active stream and
|
||||
// cmdSteer / cmdInterrupt say "No active task to stop."
|
||||
|
|
|
|||
|
|
@ -408,7 +408,7 @@ def test_frontend_has_goal_slash_command_and_status_event_handler():
|
|||
assert "goal'" in MESSAGES_JS
|
||||
assert "source.addEventListener('goal'" in MESSAGES_JS
|
||||
assert "source.addEventListener('goal_continue'" in MESSAGES_JS
|
||||
assert "['steer','interrupt','queue','terminal','goal'].includes(_pc.name)" in MESSAGES_JS
|
||||
assert "['steer','interrupt','queue','terminal','goal','yolo'].includes(_pc.name)" in MESSAGES_JS
|
||||
assert "queueSessionMessage" in MESSAGES_JS
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -164,6 +164,7 @@ class TestYoloBusySendPath:
|
|||
busy_start = messages_js.find("S.busy||compressionRunning", send_idx)
|
||||
assert busy_start >= 0, "busy block not found in send()"
|
||||
intercept_start = messages_js.find("if(text.startsWith('/')", busy_start)
|
||||
assert intercept_start >= 0, "busy slash intercept block not found in send()"
|
||||
intercept_idx = messages_js.find("'steer','interrupt','queue','terminal','goal','yolo'", intercept_start)
|
||||
busymode_idx = messages_js.find("_busyInputMode||'queue'", busy_start)
|
||||
assert intercept_idx >= 0, "Busy-path slash allowlist must include yolo in the mid-turn branch"
|
||||
|
|
|
|||
Loading…
Reference in a new issue