Merge pull request #473 from akinshaywai/chore/remove-debug-console-logs

chore: remove debug console.log statements from production code
This commit is contained in:
Simon
2026-04-27 17:30:13 +08:00
committed by GitHub
2 changed files with 2 additions and 6 deletions

View File

@@ -108,7 +108,6 @@ export function useAgent(): UseAgentResult {
const execute = useCallback(async (task: string) => { const execute = useCallback(async (task: string) => {
const agent = agentRef.current const agent = agentRef.current
console.log('🚀 [useAgent] start executing task:', task)
if (!agent) throw new Error('Agent not initialized') if (!agent) throw new Error('Agent not initialized')
setCurrentTask(task) setCurrentTask(task)

View File

@@ -77,9 +77,7 @@ export default function HeroSection() {
instructions: { instructions: {
system: 'You are a helpful assistant on PageAgent website.', system: 'You are a helpful assistant on PageAgent website.',
getPageInstructions: (url: string) => { getPageInstructions: (url: string) => {
const hint = url.includes('page-agent') ? 'This is PageAgent demo page.' : undefined return url.includes('page-agent') ? 'This is PageAgent demo page.' : undefined
console.log('[instructions] getPageInstructions:', url, '->', hint)
return hint
}, },
}, },
@@ -98,8 +96,7 @@ export default function HeroSection() {
}) })
} }
const result = await win.pageAgent.execute(task) await win.pageAgent.execute(task)
console.log(result)
} }
return ( return (