Skip to content

Commit a0d7f37

Browse files
committed
move webarena verified specific code to bgym/webarena_verified
1 parent 7f3f8de commit a0d7f37

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/agentlab/experiments/loop.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,6 @@ def run(self):
425425
exp_dir=self.exp_dir,
426426
use_raw_page_output=getattr(self.agent_args, "use_raw_page_output", False),
427427
)
428-
# webarena_verified hack, enable playwright tracing
429-
if self.env_args.task_name.startswith("webarena_verified"):
430-
env.unwrapped.context.tracing.start(snapshots=True)
431428

432429
logger.debug("Environment created.")
433430
step_info = StepInfo(step=0)
@@ -507,9 +504,6 @@ def run(self):
507504
logger.exception(f"Error while saving experiment info: {e}")
508505
try:
509506
if env is not None:
510-
# webarena_verified hack, close playwright tracing
511-
if self.env_args.task_name.startswith("webarena_verified"):
512-
env.unwrapped.context.tracing.stop(path=self.exp_dir / "pw_traces" / f"{self.exp_name}.zip")
513507
env.close()
514508
except Exception as e:
515509
logger.exception(f"Error while closing the environment: {e}")

0 commit comments

Comments
 (0)