diff --git a/be.log b/be.log index ae2b1c8a7..adfa24ce6 100644 --- a/be.log +++ b/be.log @@ -1,19 +1,29 @@ 2026-04-13 11:08:51,512 | WARNING | chonkie.chunker.code:__init__:75 - The language is set to `auto`. This would adversely affect the performance of the chunker. Consider setting the `language` parameter to a specific language to improve performance. -INFO: Will watch for changes in these directories: ['/Users/luisphan/Documents/GitHub/SurfSense/surfsense_backend/app'] -INFO: Started server process [56913] -INFO: Waiting for application startup. -2026-04-13 11:08:59 - app.agents.new_chat.checkpointer - INFO - [Checkpointer] Created AsyncPostgresSaver with connection pool -2026-04-13 11:08:59 - app.agents.new_chat.checkpointer - INFO - [Checkpointer] PostgreSQL checkpoint tables ready -2026-04-13 11:08:59 - app.tasks.surfsense_docs_indexer - INFO - Starting Surfsense docs indexing... -2026-04-13 11:08:59 - app.tasks.surfsense_docs_indexer - INFO - Found 38 MDX files to index -2026-04-13 11:08:59 - app.tasks.surfsense_docs_indexer - INFO - Indexing complete: 0 created, 0 updated, 38 skipped, 0 deleted -2026-04-13 11:08:59 - app.tasks.surfsense_docs_indexer - INFO - Surfsense docs indexing complete: created=0, updated=0, skipped=38, deleted=0 -2026-04-13 11:08:59,503 [PERF] [startup_complete] rss=719.2MB cpu=0.0% threads=11 fds=22 asyncio_tasks=6 gc=(6, 0, 11) -INFO: Application startup complete. -ERROR: [Errno 48] error while attempting to bind on address ('0.0.0.0', 8000): address already in use -INFO: Waiting for application shutdown. -2026-04-13 11:08:59 - app.agents.new_chat.checkpointer - INFO - [Checkpointer] PostgreSQL connection pool closed -INFO: Application shutdown complete. -Info: No global LLM configs found, Auto mode will not be available -Info: No global image generation configs found, Image Generation Auto mode will not be available -Info: No global vision LLM configs found, Vision LLM Auto mode will not be available +INFO: Will watch for changes in these directories: ['/Users/luisphWARNING: WatchFiles detected changes in 'app/db.py', 'app/tasks/connector_indexers/dexscreener_indexer.py', 'app/routes/airtable_add_connector_route.py', 'app/connectors/discord_connector.py', 'app/agents/new_chat/tools/crypto_realtime.py', 'app/services/connector_service.py', 'tests/unit/tasks/test_dexscreener_indexer.py', 'app/connectors/clickup_history.py', 'app/tasks/celery_tasks/connector_tasks.py', 'app/routes/search_source_connectors_routes.py', 'app/routes/dexscreener_add_connector_route.py', 'app/connectors/teams_connector.py', 'app/agents/new_chat/tools/__init__.py', 'app/agents/new_chat/tools/knowledge_base.py', 'app/utils/airtable_token_utils.py', 'tests/unit/connectors/test_dexscreener_connector.py', 'app/routes/__init__.py', 'app/connectors/notion_history.py', 'app/agents/new_chat/chat_deepagent.py', 'app/connectors/slack_history.py', 'app/agents/new_chat/tools/registry.py', 'tests/conftest.py', 'app/connectors/airtable_history.py', 'tests/unit/routes/__init__.py', 'test_dexscreener_integration.py', 'tests/unit/routes/test_dexscreener_routes.py', 'app/utils/validators.py', 'app/connectors/dexscreener_connector.py', 'alembic/versions/85_add_dexscreener_connector.py', 'test_chat_rag.py', 'app/tasks/celery_tasks/schedule_checker_task.py', 'app/connectors/jira_history.py', 'app/app.py', 'app/connectors/confluence_history.py', 'app/tasks/connector_indexers/__init__.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/connectors/confluence_history.py', 'tests/conftest.py', 'app/routes/airtable_add_connector_route.py', 'app/app.py', 'app/connectors/jira_history.py', 'app/connectors/notion_history.py', 'app/tasks/connector_indexers/__init__.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/routes/__init__.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/db.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/chat_deepagent.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/knowledge_base.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/knowledge_base.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/knowledge_base.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/__init__.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/__init__.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/registry.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/registry.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/registry.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". +WARNING: WatchFiles detected changes in 'app/agents/new_chat/tools/registry.py'. Reloading... +ERROR: Error loading ASGI app. Could not import module "app.main". diff --git a/fe.log b/fe.log index 4d8b679f0..9cb47ecfe 100644 --- a/fe.log +++ b/fe.log @@ -12,7 +12,77 @@ ✓ Starting... [MDX] generated files in 7.297166999999945ms [MDX] started dev server -⨯ Unable to acquire lock at /Users/luisphan/Documents/GitHub/SurfSense/surfsense_web/.next/dev/lock, is another instance of next dev running? - Suggestion: If you intended to restart next dev, terminate the other process, and then try again. -[MDX] closing dev server -[?25h +⨯ Unable to acquire lock at /Users/luisphan/Documents/GitHub/SurfSense/surfsense_web/.next/de +thread 'tokio-runtime-worker' (11801668) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for determine_module_type_for_directory (TaskId 563198)) + +Caused by: + 0: Looking up data for TaskId 563198 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace + +thread 'tokio-runtime-worker' (11801668) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for determine_module_type_for_directory (TaskId 563198)) + +Caused by: + 0: Looking up data for TaskId 563198 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) +[MDX] generated files in 55.22929099947214ms + +thread 'tokio-runtime-worker' (11801675) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for realpath_with_links (TaskId 1366130)) + +Caused by: + 0: Looking up data for TaskId 1366130 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) + +thread 'tokio-runtime-worker' (11801674) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for find_context_file (TaskId 572)) + +Caused by: + 0: Looking up data for TaskId 572 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) + +thread 'tokio-runtime-worker' (12171593) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for find_context_file (TaskId 523)) + +Caused by: + 0: Looking up data for TaskId 523 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) + +thread 'tokio-runtime-worker' (11801674) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for project_container_entrypoints_operation (TaskId 15)) + +Caused by: + 0: Looking up data for TaskId 15 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) + +thread 'tokio-runtime-worker' (11801674) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for pick_endpoint (TaskId 929)) + +Caused by: + 0: Looking up data for TaskId 929 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) + +thread 'tokio-runtime-worker' (12171593) panicked at /Users/geist/dev/actions-runner/_work/next.js/next.js/turbopack/crates/turbo-tasks-backend/src/backend/operation/mod.rs:156:17: +Failed to restore task data (corrupted database or bug): Meta for pick_endpoint (TaskId 929)) + +Caused by: + 0: Looking up data for TaskId 929 from database failed + 1: Unable to open static sorted file referenced from 00000594.meta + 2: Unable to open static sorted file 00000590.sst + 3: No such file or directory (os error 2) diff --git a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx index 2dd8ad57a..80017cbe7 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/new-chat/[[...chat_id]]/page.tsx @@ -39,29 +39,29 @@ import { currentUserAtom } from "@/atoms/user/user-query.atoms"; import { ThinkingStepsDataUI } from "@/components/assistant-ui/thinking-steps"; import { Thread } from "@/components/assistant-ui/thread"; import { ChatHeader } from "@/components/new-chat/chat-header"; +// Crypto Tool UI Components - Conversational Crypto Advisor +import { + ActionConfirmationToolUI, + AlertConfigurationToolUI, + HolderAnalysisToolUI, + LiveTokenDataToolUI, + // Real-time crypto tools (Hybrid approach: RAG + Real-time) + LiveTokenPriceToolUI, + MarketOverviewToolUI, + PortfolioDisplayToolUI, + ProactiveAlertToolUI, + TokenAnalysisToolUI, + TrendingTokensToolUI, + UserProfileToolUI, + WatchlistDisplayToolUI, + WhaleActivityToolUI, +} from "@/components/tool-ui/crypto"; import type { ThinkingStep } from "@/components/tool-ui/deepagent-thinking"; import { DisplayImageToolUI } from "@/components/tool-ui/display-image"; import { GeneratePodcastToolUI } from "@/components/tool-ui/generate-podcast"; import { LinkPreviewToolUI } from "@/components/tool-ui/link-preview"; import { ScrapeWebpageToolUI } from "@/components/tool-ui/scrape-webpage"; import { RecallMemoryToolUI, SaveMemoryToolUI } from "@/components/tool-ui/user-memory"; -// Crypto Tool UI Components - Conversational Crypto Advisor -import { - TokenAnalysisToolUI, - WatchlistDisplayToolUI, - ActionConfirmationToolUI, - AlertConfigurationToolUI, - ProactiveAlertToolUI, - TrendingTokensToolUI, - WhaleActivityToolUI, - MarketOverviewToolUI, - HolderAnalysisToolUI, - PortfolioDisplayToolUI, - UserProfileToolUI, - // Real-time crypto tools (Hybrid approach: RAG + Real-time) - LiveTokenPriceToolUI, - LiveTokenDataToolUI, -} from "@/components/tool-ui/crypto"; import { Spinner } from "@/components/ui/spinner"; import { useChatSessionStateSync } from "@/hooks/use-chat-session-state"; import { useMessagesSync } from "@/hooks/use-messages-sync"; diff --git a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx index 359efdb01..31ab2debc 100644 --- a/surfsense_web/components/layout/providers/LayoutDataProvider.tsx +++ b/surfsense_web/components/layout/providers/LayoutDataProvider.tsx @@ -2,7 +2,15 @@ import { useQuery, useQueryClient } from "@tanstack/react-query"; import { useAtom, useAtomValue, useSetAtom } from "jotai"; -import { AlertTriangle, Coins, Inbox, LogOut, Megaphone, SquareLibrary, Trash2 } from "lucide-react"; +import { + AlertTriangle, + Coins, + Inbox, + LogOut, + Megaphone, + SquareLibrary, + Trash2, +} from "lucide-react"; import { useParams, usePathname, useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { useTheme } from "next-themes";