fix: strict tab canvas isolation
- New tabs explicitly have showCanvas: false and previewData: null - Tab sync uses strict boolean check (showCanvas === true) - Default tab fallback includes canvas defaults - Switching to new tab now properly hides canvas from previous tab - Each tab's preview is completely independent
This commit is contained in:
@@ -128,7 +128,9 @@ const useStore = create<AppState>((set) => ({
|
||||
id: newId,
|
||||
title: `Chat ${state.aiAssistTabs.length + 1}`,
|
||||
history: [],
|
||||
currentAgent: agent
|
||||
currentAgent: agent,
|
||||
previewData: null,
|
||||
showCanvas: false
|
||||
};
|
||||
return {
|
||||
aiAssistTabs: [...state.aiAssistTabs, newTab],
|
||||
|
||||
Reference in New Issue
Block a user