Sync session URL when opening chats

This commit is contained in:
wuyang6
2026-05-14 16:02:27 +08:00
parent 997f5cd60b
commit e48c0ff981
4 changed files with 22 additions and 0 deletions
+2
View File
@@ -28,6 +28,7 @@ import {
readPendingWorkspaceSessionId,
writeActiveSessionId,
} from "@/lib/claw-active-session";
import { pushSessionUrl } from "@/lib/claw-session-url";
import { ClawSessionReplayProvider } from "@/lib/claw-session-replay";
import { ClawAccountGate, useClawAccount } from "./claw-account-gate";
@@ -112,6 +113,7 @@ export const Assistant = ({ initialSessionId }: AssistantProps = {}) => {
targetSessionId,
toReplayRepository(payload, targetSessionId, runStatus),
);
pushSessionUrl(targetSessionId);
} catch {
if (!cancelled) {
loadedInitialSessionRef.current = null;