From 42fedaf7804876b4185b26f10881d865ebf3c97f Mon Sep 17 00:00:00 2001 From: jja881 Date: Sat, 20 Jun 2026 23:24:57 +0800 Subject: [PATCH] test: update explicit-pick regex for broadened _explicitPick inference The consume-clear guard now checks _pendingPickMatch (the pending onchange marker match) instead of the broadened _explicitPick, which may also be true from the new _isCrossProviderPick inference without a pending marker to consume. --- tests/test_issue3737_explicit_pick_client_wiring.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_issue3737_explicit_pick_client_wiring.py b/tests/test_issue3737_explicit_pick_client_wiring.py index 9d445684..afb59dfd 100644 --- a/tests/test_issue3737_explicit_pick_client_wiring.py +++ b/tests/test_issue3737_explicit_pick_client_wiring.py @@ -61,9 +61,11 @@ def test_send_consumes_pending_pick_after_reading_it(): assert "_clearPendingSessionModel(activeSid)" in region, ( "send() must consume (clear) the pending explicit-pick marker after reading it" ) - # The clear must be gated on _explicitPick (only consume a genuine, matching pick). - assert re.search(r"_explicitPick\s*&&[^\n]*_clearPendingSessionModel", region), ( - "the consume-clear must be gated on _explicitPick" + # The clear must be gated on a genuine, matching pending pick (not on the + # broadened _explicitPick which may also be true from a cross-provider + # inference without a pending marker to consume). + assert re.search(r"_pendingPickMatch\s*&&[^\\n]*_clearPendingSessionModel", region), ( + "the consume-clear must be gated on _pendingPickMatch (a genuine, matching pending pick)" )