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.
This commit is contained in:
jja881 authored and nesquena-hermes committed 2026-06-20 18:44:25 +00:00
1 parent 96265f6ae4
commit 42fedaf780
1 file changed
+5 -3
@@ -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)"
)