fix: ChatWorkspace loadRuntime() use cookie-based withSessionRequest
This commit is contained in:
@@ -463,7 +463,7 @@ export default function ChatWorkspace({ initialSister, onClose }: ChatWorkspaceP
|
||||
|
||||
const loadRuntime = useCallback(async (sister: SisterName) => {
|
||||
try {
|
||||
const res = await fetch(`${API_URL}/api/sisters/${sister}/runtime`);
|
||||
const res = await fetch(`${API_URL}/api/sisters/${sister}/runtime`, withSessionRequest());
|
||||
if (!res.ok) return;
|
||||
const data = (await res.json()) as RuntimeSnapshot;
|
||||
setRuntimeBySister((prev) => ({ ...prev, [sister]: data }));
|
||||
|
||||
Reference in New Issue
Block a user