mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 15:30:39 +00:00
Fix styles
This commit is contained in:
committed by
Peter Steinberger
parent
bab5d994bc
commit
85f01cd9eb
@@ -6,14 +6,6 @@ type SessionTranscriptListener = (update: SessionTranscriptUpdate) => void;
|
||||
|
||||
const SESSION_TRANSCRIPT_LISTENERS = new Set<SessionTranscriptListener>();
|
||||
|
||||
/**
|
||||
* Register a listener for session transcript updates.
|
||||
* Returns an unsubscribe function. Listeners are guarded with try/catch
|
||||
* so a throwing subscriber cannot prevent other listeners from firing.
|
||||
*
|
||||
* @param listener - Callback invoked with the updated session file path.
|
||||
* @returns Unsubscribe function; call it to remove the listener.
|
||||
*/
|
||||
export function onSessionTranscriptUpdate(listener: SessionTranscriptListener): () => void {
|
||||
SESSION_TRANSCRIPT_LISTENERS.add(listener);
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user