Переглянути джерело

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

Xingyao Wang 1 рік тому
батько
коміт
55c41212c8
1 змінених файлів з 3 додано та 1 видалено
  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'