From 29133f7c9195b96f8ea6bfabdc0d4a022edb5798 Mon Sep 17 00:00:00 2001 From: M3gA-Mind Date: Wed, 4 Mar 2026 04:22:13 +0530 Subject: [PATCH] refactor: remove unnecessary console warnings in SkillProvider - Eliminated console warnings related to Notion user retrieval errors and auto-loading skills, streamlining the logging process for better clarity and reducing noise in the console output. - Improved code readability by cleaning up commented-out warning messages that were no longer needed. --- src/providers/SkillProvider.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/providers/SkillProvider.tsx b/src/providers/SkillProvider.tsx index 0de405348..66a8d9be1 100644 --- a/src/providers/SkillProvider.tsx +++ b/src/providers/SkillProvider.tsx @@ -94,7 +94,6 @@ async function syncNotionUserOnConnect( try { const toolResult = await skillManager.callTool('notion', 'get-user', { user_id: 'me' }); if (!toolResult || toolResult.isError || toolResult.content.length === 0) { - console.warn('[SkillProvider] Notion get-user tool returned no content or an error'); return; } const first = toolResult.content[0]; @@ -103,7 +102,6 @@ async function syncNotionUserOnConnect( const parsed = JSON.parse(raw) as NotionUserProfile | { error?: string }; if ('error' in parsed && parsed.error) { - console.warn('[SkillProvider] Notion get-user error:', parsed.error); return; } @@ -245,17 +243,11 @@ export default function SkillProvider({ children }: { children: ReactNode }) { if (DEV_AUTO_LOAD_SKILL) { const autoLoadManifest = manifests.find(m => m.id === DEV_AUTO_LOAD_SKILL); if (autoLoadManifest) { - console.log(`[SkillProvider] Auto-loading skill from env: ${DEV_AUTO_LOAD_SKILL}`); try { await skillManager.startSkill(autoLoadManifest); - console.log(`[SkillProvider] Successfully auto-loaded skill: ${DEV_AUTO_LOAD_SKILL}`); } catch (err) { console.error(`[SkillProvider] Failed to auto-load skill ${DEV_AUTO_LOAD_SKILL}:`, err); } - } else { - console.warn( - `[SkillProvider] DEV_AUTO_LOAD_SKILL="${DEV_AUTO_LOAD_SKILL}" specified but skill not found in discovered skills` - ); } }