Ver Fonte

chore: update browser message to be more human-readable in UI (#4761)

Xingyao Wang há 1 ano atrás
pai
commit
55c41212c8
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      openhands/events/action/browse.py

+ 3 - 1
openhands/events/action/browse.py

@@ -36,7 +36,9 @@ class BrowseInteractiveAction(Action):
 
     @property
     def message(self) -> str:
-        return f'Executing browser actions: {self.browser_actions}'
+        return (
+            f'I am interacting with the browser:\n' f'```\n{self.browser_actions}\n```'
+        )
 
     def __str__(self) -> str:
         ret = '**BrowseInteractiveAction**\n'