You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Speech-triggered proactivity bypasses JIT suppression; dwell and departure do not #12407
ContextProactivityEngine now has three evaluation entry points, and only two of them consult JIT admission.
contextEntered (line 220) and evaluateAfterDeparture (line 278) both call JITProactivityCoordinator.shared.handle(...) first and return early when it answers true. evaluateFromSpeech (line 299) calls evaluateAndDeliver directly — it never reaches the coordinator.
That matters only in one direction. handle() returns false for .legacyContextBucketFallback, which is what the kill switch produces (JITProactivityPolicy.swift:87–95, via permitsNewLane at :29), so with JIT off or killed all three lanes end up in the legacy director and behave alike. The difference appears when JIT is enabled and returns .suppressed (JITProactivityCoordinator.swift:42–44): dwell and departure stop without delivering, while a spoken mid-visit question still evaluates and can deliver.
So the speech lane bypasses JIT's suppression decisions — dedup, continuity keys, planned-trigger precedence — not its kill switch.
Whether that is a defect or the intended design is a product question, not a code one. A plausible reading is that it's correct: a user asking out loud is a direct request, where dwell is the engine volunteering, and a direct request arguably should outrank planned-trigger precedence. The opposite reading — that one owner should not receive two uncoordinated proactive surfaces — is equally defensible.
No user impact today: the transcript flag (ContextBucketsFeature.isTranscriptProactivityEnabled) is hard-off in production and Beta, and JIT's default-unknown fails closed to legacy. This wants deciding before either flag widens, which is why it's filed rather than fixed.
Surfaced by @Git-on-my-level while reviewing #11804; the kill-switch half of the original framing was corrected in that thread and the above reflects the verified behaviour.
The third entry point this describes (evaluateFromSpeech) is introduced by #11804
and isn't on main — contextEntered and evaluateAfterDeparture both consult the coordinator today. Closing here; I'll route speech through JIT admission in that PR before it merges.
Activity
aryanorastar commentedon Sep 4, 2026
The third entry point this describes (evaluateFromSpeech) is introduced by
#11804
and isn't on main — contextEntered and evaluateAfterDeparture both consult the coordinator today. Closing here; I'll route speech through JIT admission in that PR before it merges.
fix(desktop): pass speech-triggered proactivity through JIT admission
fix(desktop): correct the JIT-admission rationale in code and test