Files
multica/packages/core/realtime/index.ts
YYClaw 9eddcaff10 fix(chat): defer cancellation-time finalization until the task transcript is stable (#5246)
A quick Stop before the agent's first token no longer races a late reply. Started-but-empty cancellations defer the empty/non-empty judgment until the daemon acks its transcript flush (or a grace-period sweeper fires), then settle to a single outcome. Empty outcomes persist a durable, creator-authorized draft restore (fetched/consumed via a dedicated endpoint, reconnect-safe and at-most-once) instead of broadcasting the prompt over the workspace bus.

Closes #5219
2026-07-15 00:52:27 +08:00

6 lines
300 B
TypeScript

export { WSProvider, useWS } from "./provider";
export type { WSProviderProps } from "./provider";
export { useWSEvent, useWSReconnect } from "./hooks";
export { useRealtimeSync, removeChatMessageFromCaches } from "./use-realtime-sync";
export type { RealtimeSyncStores } from "./use-realtime-sync";