feat: enhance chat and settings functionality with debugging and new features

- Integrated useRouter for navigation in chat and settings pages, improving user experience.
- Added detailed debug logging for web context generation and chat payloads to assist in troubleshooting.
- Updated settings page to include a hardware dashboard and enhanced sources configuration management.
- Implemented auto-start feature for the application and improved task management with new scheduled task options.
- Refined user interface components for better accessibility and usability across chat and settings pages.
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-20 05:25:34 -03:00
1 parent 8834ef2b4f
commit a44d1bba44
18 files changed
+1692 -223

No files matched your search

+16
View File
@@ -83,6 +83,22 @@ export function useWebSearch() {
const results = await webSearchService.search(query, limit, excludedDomains, searchConfig);
// [DEBUG INJECTION START]
console.log('🌐 Debug: Web Search Service Results', {
count: results.length,
firstResultHasMarkdown: results[0] ? !!results[0].markdown : 'N/A',
firstResultMarkdownLen: results[0]?.markdown?.length || 0,
allResults: results.map((r, idx) => ({
index: idx,
url: r.url,
title: r.title,
hasMarkdown: !!r.markdown,
markdownLength: r.markdown?.length || 0,
markdownPreview: r.markdown?.substring(0, 150) || 'SEM MARKDOWN'
}))
});
// [DEBUG INJECTION END]
setState(prev => ({
...prev,
status: 'completed',