mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-18 23:11:12 +02:00
feat(chat): mount ActiveChatStreamRunner in the workspace shell
This commit is contained in:
parent
5c3aa72c1a
commit
5e453cefee
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import { workspacesAtom } from "@/atoms/workspaces/workspace-query.atoms";
|
||||||
import { ActionLogDialog } from "@/components/agent-action-log/action-log-dialog";
|
import { ActionLogDialog } from "@/components/agent-action-log/action-log-dialog";
|
||||||
import { AnnouncementSpotlight } from "@/components/announcements/AnnouncementSpotlight";
|
import { AnnouncementSpotlight } from "@/components/announcements/AnnouncementSpotlight";
|
||||||
import { AnnouncementsDialog } from "@/components/announcements/AnnouncementsDialog";
|
import { AnnouncementsDialog } from "@/components/announcements/AnnouncementsDialog";
|
||||||
|
import { ActiveChatStreamRunner } from "@/components/chat/active-chat-stream-runner";
|
||||||
import {
|
import {
|
||||||
AlertDialog,
|
AlertDialog,
|
||||||
AlertDialogAction,
|
AlertDialogAction,
|
||||||
|
|
@ -644,6 +645,9 @@ export function LayoutDataProvider({ workspaceId, children }: LayoutDataProvider
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{/* Persistent host: keeps an in-flight chat turn streaming across
|
||||||
|
in-app navigation and aborts it only on workspace teardown. */}
|
||||||
|
<ActiveChatStreamRunner />
|
||||||
<LayoutShell
|
<LayoutShell
|
||||||
workspaces={workspaces}
|
workspaces={workspaces}
|
||||||
activeWorkspaceId={Number(workspaceId)}
|
activeWorkspaceId={Number(workspaceId)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue