diff --git a/packages/extension/src/agent/useAgent.ts b/packages/extension/src/agent/useAgent.ts index c6a31bf..cfc7702 100644 --- a/packages/extension/src/agent/useAgent.ts +++ b/packages/extension/src/agent/useAgent.ts @@ -108,7 +108,6 @@ export function useAgent(): UseAgentResult { const execute = useCallback(async (task: string) => { const agent = agentRef.current - console.log('🚀 [useAgent] start executing task:', task) if (!agent) throw new Error('Agent not initialized') setCurrentTask(task) diff --git a/packages/website/src/pages/home/HeroSection.tsx b/packages/website/src/pages/home/HeroSection.tsx index 0e562e1..7a381d8 100644 --- a/packages/website/src/pages/home/HeroSection.tsx +++ b/packages/website/src/pages/home/HeroSection.tsx @@ -77,9 +77,7 @@ export default function HeroSection() { instructions: { system: 'You are a helpful assistant on PageAgent website.', getPageInstructions: (url: string) => { - const hint = url.includes('page-agent') ? 'This is PageAgent demo page.' : undefined - console.log('[instructions] getPageInstructions:', url, '->', hint) - return hint + return url.includes('page-agent') ? 'This is PageAgent demo page.' : undefined }, }, @@ -98,8 +96,7 @@ export default function HeroSection() { }) } - const result = await win.pageAgent.execute(task) - console.log(result) + await win.pageAgent.execute(task) } return (