Load recipe deeplinks in single window when app is closed (#4048)

This commit is contained in:
Zane
2025-08-13 14:52:33 -07:00
committed by GitHub
parent 1a58892948
commit 68dd3281f8
8 changed files with 123 additions and 53 deletions
+3 -1
View File
@@ -4,6 +4,8 @@ import { generateSessionId } from '../sessions';
import { Recipe } from '../recipe';
import { useDraftContext } from './DraftContext';
export const DEFAULT_CHAT_TITLE = 'New Chat';
interface ChatContextType {
chat: ChatType;
setChat: (chat: ChatType) => void;
@@ -53,7 +55,7 @@ export const ChatProvider: React.FC<ChatProviderProps> = ({
const newSessionId = generateSessionId();
setChat({
id: newSessionId,
title: 'New Chat',
title: DEFAULT_CHAT_TITLE,
messages: [],
messageHistoryIndex: 0,
recipeConfig: null, // Clear recipe when resetting chat