@@ -33,16 +33,17 @@ def reset(self, seed: int):
3333 logger .info (f"Task goal: { self .goal } " )
3434 page_content = self .backend .page_snapshot ()
3535 screenshot = self .backend .page_screenshot ()
36- logger .info (f"Initial obs: { page_content } \n { screenshot } " )
3736 obs = {
3837 "goal_object" : [{"type" : "text" , "text" : self .goal }],
39- "pruned_html" : page_content ,
38+ "pruned_html" : "" ,
4039 "axtree_txt" : page_content ,
4140 "screenshot" : screenshot ,
4241 "last_action_error" : "" ,
4342 "focused_element_bid" : "none" ,
4443 }
45- return self .task .obs_postprocess (obs ), {}
44+ obs = self .task .obs_postprocess (obs )
45+ logger .info (f"Initial obs: { obs } " )
46+ return obs , {}
4647
4748 def step (self , action : ToolCallAction | str ) -> tuple [dict , float , bool , bool , dict ]:
4849 if isinstance (action , str ):
@@ -62,9 +63,11 @@ def step(self, action: ToolCallAction | str) -> tuple[dict, float, bool, bool, d
6263 else :
6364 observation = self ._step (action )
6465 observation = self .task .obs_postprocess (observation )
66+
67+
6568 action_exec_stop = time .time ()
6669 self ._turns += 1
67- logger .info (f"Obs:\n { observation [ 'pruned_html' ] } " )
70+ logger .info (f"Obs: { observation } " )
6871
6972 truncated = self ._turns >= self .max_turns
7073
0 commit comments