Restore active run state on session replay
This commit is contained in:
@@ -18,6 +18,7 @@ import type { ClawAccount } from "@/app/claw-account-gate";
|
||||
import { ClawLlmSettings } from "@/app/claw-llm-settings";
|
||||
import { ClawThemeSwitcher } from "@/app/claw-theme-switcher";
|
||||
import {
|
||||
fetchLatestRunStatus,
|
||||
ThreadList,
|
||||
toReplayRepository,
|
||||
} from "@/components/assistant-ui/thread-list";
|
||||
@@ -367,9 +368,10 @@ function useSidebarSessions(open: boolean) {
|
||||
});
|
||||
if (!response.ok) return;
|
||||
const payload = (await response.json()) as ReplaySessionPayload;
|
||||
const runStatus = await fetchLatestRunStatus(cleanSessionId);
|
||||
replaySession(
|
||||
cleanSessionId,
|
||||
toReplayRepository(payload, cleanSessionId),
|
||||
toReplayRepository(payload, cleanSessionId, runStatus),
|
||||
);
|
||||
} finally {
|
||||
setLoadingSessionId(null);
|
||||
|
||||
Reference in New Issue
Block a user