File tree Expand file tree Collapse file tree
multimodal/tarko/agent-web-ui/src/common/state/actions/eventProcessors/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Getter } from 'jotai' ;
22import { activeSessionIdAtom } from '@/common/state/atoms/session' ;
3- import { replayStateAtom } from '@/common/state/atoms/replay' ;
43
54/**
65 * Helper function to validate if the event belongs to the current active session
76 * Prevents cross-session content bleeding in workspace panel
87 */
98export function shouldUpdatePanelContent ( get : Getter , sessionId : string ) : boolean {
109 const activeSessionId = get ( activeSessionIdAtom ) ;
11- const replayState = get ( replayStateAtom ) ;
1210
1311 // Don't update panel content if:
1412 // 1. No active session
1513 // 2. Event is from a different session than the active one
16- // 3. In replay mode (replay handles its own content updates)
17- if ( ! activeSessionId || sessionId !== activeSessionId || replayState . isActive ) {
14+ if ( ! activeSessionId || sessionId !== activeSessionId ) {
1815 return false ;
1916 }
2017
You can’t perform that action at this time.
0 commit comments