Skip to content

πŸ™Œ OpenHands: AI-Driven Development

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

Xingyao Wang55c41212c8ab
diff --git a/openhands/events/action/browse.py b/openhands/events/action/browse.py
index 441c863140..41816216d6 100644
--- a/openhands/events/action/browse.py
+++ b/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'