fix(webui): clarify command session activity
This commit is contained in:
1 parent
c80ae65746
commit
de9cce45b4
28 files changed
+1174
-68
No files matched your search
@@ -1,4 +1,7 @@
|
||||
import { useMemo } from "react";
|
||||
import { SubagentThreadView } from "@/components/thread/SubagentThreadView";
|
||||
import { ExecSessionCommandsContext } from "@/components/thread/activity/exec-session-context";
|
||||
import { execSessionCommands } from "@/components/thread/activity/exec-session-model";
|
||||
import { useSubagentThread } from "@/components/thread/useSubagentThread";
|
||||
import type { SubagentTaskSnapshot } from "@/lib/types";
|
||||
|
||||
@@ -12,6 +15,9 @@ interface SubagentThreadProps {
|
||||
|
||||
export function SubagentThread({ token, sessionKey, task, historyEnabled, isStreaming }: SubagentThreadProps) {
|
||||
const { messages, loading, error, activeTurnId, retry } = useSubagentThread({ token, sessionKey, task, historyEnabled });
|
||||
return <SubagentThreadView messages={messages} loading={loading} error={error} isStreaming={isStreaming}
|
||||
activeTurnId={activeTurnId} runStartedAt={task.created_at} onRetry={retry} />;
|
||||
const commands = useMemo(() => execSessionCommands(messages), [messages]);
|
||||
return <ExecSessionCommandsContext.Provider value={commands}>
|
||||
<SubagentThreadView messages={messages} loading={loading} error={error} isStreaming={isStreaming}
|
||||
activeTurnId={activeTurnId} runStartedAt={task.created_at} onRetry={retry} />
|
||||
</ExecSessionCommandsContext.Provider>;
|
||||
}
|
||||
Reference in new issue
Block a user