Files
t3code/apps/web/src/components/chat/threadFindActionBus.ts
T
12069eefd7 feat(web): find messages and plans in the current thread (#10439)
Co-authored-by: Yash Singh <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-08 08:24:50 -05:00

11 lines
381 B
TypeScript

const THREAD_FIND_OPEN_EVENT = "t3:thread-find-open";
export function requestThreadFindOpen(): void {
window.dispatchEvent(new Event(THREAD_FIND_OPEN_EVENT));
}
export function subscribeThreadFindOpen(listener: () => void): () => void {
window.addEventListener(THREAD_FIND_OPEN_EVENT, listener);
return () => window.removeEventListener(THREAD_FIND_OPEN_EVENT, listener);
}