Simplify console message handling and reduce code complexity

- Remove unused useErrorDetection.ts hook (154 lines)
- Remove separate console.ts type file, consolidate into ReadConsoleMessagesTool
- Simplify console message state management in PreviewPane
- Remove redundant console clearing logic in ProjectView
- Streamline copy functionality in console UI
- Clean up imports and formatting

Preserves all functionality while reducing code complexity and maintenance burden.
This commit is contained in:
Chad Curtis committed 2025-09-25 04:46:47 +00:00
1 parent 6296fc4366
commit 7ab30af944
6 files changed
+19 -201

No files matched your search

+1 -8
View File
@@ -79,14 +79,7 @@ export function ProjectView() {
}
}, [isPreviewable, mobileView, activeTab]);
// Clear console messages when projectId changes or component unmounts
useEffect(() => {
return () => {
if (projectId) {
clearConsoleMessages();
}
};
}, [projectId]);
const handleNewChat = () => {
// Reset to chat view on mobile when starting new chat