fix eventbus name

This commit is contained in:
Nick Sweeting
2025-06-28 03:50:19 -07:00
parent 4c48fe9400
commit 1a9d56fccc

View File

@@ -421,7 +421,7 @@ class Agent(Generic[Context]):
# Event bus with WAL persistence
# Default to ~/.config/browseruse/events/{agent_session_id}.jsonl
wal_path = CONFIG.BROWSER_USE_CONFIG_DIR / 'events' / f'{self.session_id}.jsonl'
self.eventbus = EventBus(name=str(self), wal_path=wal_path)
self.eventbus = EventBus(name=f'Agent_{str(self.id)[-4:]}', wal_path=wal_path)
# Cloud sync service
self.enable_cloud_sync = CONFIG.BROWSER_USE_CLOUD_SYNC