Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ui/desktop/src/hooks/useChat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import { ChatType } from '../types/chat';
import { fetchSessionDetails, generateSessionId } from '../sessions';
import { ensureClientInitialized } from '../utils';
import { View, ViewOptions } from '../App';

type UseChatArgs = {
Expand Down Expand Up @@ -29,6 +30,7 @@ export const useChat = ({ setIsLoadingSession, setView, setPairChat }: UseChatAr

setIsLoadingSession(true);
try {
await ensureClientInitialized();
const sessionDetails = await fetchSessionDetails(resumeSessionId);

// Only set view if we have valid session details
Expand Down
Loading