Преглед изворни кода

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'