Procházet zdrojové kódy

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

Xingyao Wang před 1 rokem
rodič
revize
55c41212c8
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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'