@kite-copilot/chat-panel 0.2.25 → 0.2.26

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.
package/dist/auto.cjs CHANGED
@@ -1591,6 +1591,11 @@ function ChatPanel({
1591
1591
  }
1592
1592
  };
1593
1593
  }, [supabaseClient]);
1594
+ React4.useEffect(() => {
1595
+ if (isEscalated && supabaseClient && sessionId) {
1596
+ subscribeToAgentMessages(sessionId);
1597
+ }
1598
+ }, [isEscalated, supabaseClient, sessionId, subscribeToAgentMessages]);
1594
1599
  const sendEscalatedMessage = React4.useCallback(async (content) => {
1595
1600
  if (!supabaseClient || !isEscalated) return false;
1596
1601
  try {
package/dist/auto.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createKiteChat
3
- } from "./chunk-WCRTS3TD.js";
3
+ } from "./chunk-KPTM44LS.js";
4
4
 
5
5
  // src/auto.ts
6
6
  function mountKiteChat(config) {
@@ -1590,6 +1590,11 @@ function ChatPanel({
1590
1590
  }
1591
1591
  };
1592
1592
  }, [supabaseClient]);
1593
+ React4.useEffect(() => {
1594
+ if (isEscalated && supabaseClient && sessionId) {
1595
+ subscribeToAgentMessages(sessionId);
1596
+ }
1597
+ }, [isEscalated, supabaseClient, sessionId, subscribeToAgentMessages]);
1593
1598
  const sendEscalatedMessage = React4.useCallback(async (content) => {
1594
1599
  if (!supabaseClient || !isEscalated) return false;
1595
1600
  try {