shorter guids for browser screenshots

frdel committed Aug 27, 2025 at 21:22 UTC a5885a1ad41ba066c0ec2ca9c5fee789d353449b
1 file changed +1 -1
python/tools/browser_agent.py
+1 -1
@@ -191,7 +191,7 @@ class State:
191 class BrowserAgent(Tool):
192
193 async def execute(self, message="", reset="", **kwargs):
194 - self.guid = str(uuid.uuid4())
194 + self.guid = self.agent.context.generate_id() # short random id
195 reset = str(reset).lower().strip() == "true"
196 await self.prepare_state(reset=reset)
197 message = SecretsManager.get_instance().mask_values(message, placeholder="<secret>{key}</secret>") # mask any potential passwords passed from A0 to browser-use to browser-use format