You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling handler.close() after creating an Agent will exit the process without any errors thrown.
Here's a simple reproduction that demonstrates the issue (running local core):
asyncfunctionmain(): Promise<void>{consthandler=newHandler();constagent=awaithandler.createAgent();awaitagent.close();awaithandler.close();console.log('This should log');}main().then(()=>console.log('finished')).catch((err)=>console.error(err));
This should log does not get logged
This also occurs with dispatchAgent:
asyncfunctionmain2(): Promise<void>{consthandler=newHandler();handler.dispatchAgent(async(agent)=>{awaitagent.goto('https://example.com');});awaithandler.waitForAllDispatches();awaithandler.close();console.log('This should log');}main2().then(()=>console.log('finished')).catch((err)=>console.error(err));
Removing await handler.close() just causes the process to complete, but hang and not exit.
The text was updated successfully, but these errors were encountered:
Following up on some discussion in the Discord server.
Calling
handler.close()
after creating an Agent will exit the process without any errors thrown.Here's a simple reproduction that demonstrates the issue (running local core):
This should log
does not get loggedThis also occurs with
dispatchAgent
:Removing
await handler.close()
just causes the process to complete, but hang and not exit.The text was updated successfully, but these errors were encountered: