feat: independent canvas per tab

- Added showCanvas to AIAssistTab interface in store
- Each tab now has its own canvas visibility state
- Canvas state syncs when switching tabs
- Closing canvas saves state to tab
- Clearing history resets canvas state
- Streaming updates save showCanvas: true to the request's tab
- Complete tab isolation: history, agent, preview, AND canvas
This commit is contained in:
Gemini AI
2025-12-29 03:21:54 +04:00
Unverified
parent 9996622b12
commit 4630e23330
2 changed files with 12 additions and 6 deletions

View File

@@ -6,7 +6,8 @@ interface AIAssistTab {
title: string;
history: AIAssistMessage[];
currentAgent: string;
previewData?: any | null; // PreviewData type from AIAssist
previewData?: any | null;
showCanvas?: boolean;
}
interface AppState {