@eshal-bot/chat-widget 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91408,6 +91408,19 @@
91408
91408
  return null;
91409
91409
  }
91410
91410
 
91411
+ // EV-3535 - DEFER the pill while the source set is PRELIMINARY (the early
91412
+ // {type:'sources'} frame emitted before the answer / before fallback is
91413
+ // known). Committing a pill off preliminary sources and then clearing it
91414
+ // when the authoritative `complete` list comes back empty (a no-info
91415
+ // fallback) is the reported appear-then-vanish. Hiding the marker until the
91416
+ // authoritative frame arrives means pills appear exactly once - and never on
91417
+ // a turn whose sources are ultimately suppressed. The marker text is
91418
+ // superseded by the backend's stripped finalContent at complete, so nothing
91419
+ // leaks either way.
91420
+ if (ctx.sourcesPreliminary) {
91421
+ return null;
91422
+ }
91423
+
91411
91424
  // Sources present but NONE of these indices resolve to a card - an
91412
91425
  // orphan/hallucinated marker (e.g. `[6]` whose chunk was filtered out
91413
91426
  // of the panel, or `[99]`). HIDE it instead of leaking a raw grey