Skip to content

Commit 898914f

Browse files
authored
fix(tarko): allow workspace panel updates in replay mode (#1202)
1 parent 21c3910 commit 898914f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

multimodal/tarko/agent-web-ui/src/common/state/actions/eventProcessors/utils/panelContentUpdater.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import { Getter } from 'jotai';
22
import { 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
*/
98
export 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

0 commit comments

Comments
 (0)