chore: sync ffmpeg RpaVideoSession, remove Playwright recording
All checks were successful
技能自动化发布 / release (push) Successful in 5s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-02 14:07:02 +08:00
parent 38343d22ca
commit f52536bdcc
4 changed files with 200 additions and 73 deletions

View File

@@ -50,14 +50,13 @@ class SimRpaAdapter(AdapterBase):
batch_id=batch_id,
title="技能仿真演示",
) as video:
video.step("正在打开目标页面")
video.add_step("正在打开目标页面")
try:
async with async_playwright() as pw:
context = await launch_persistent_browser(
pw,
profile_dir=profile_dir,
headless=config.get_bool("OPENCLAW_BROWSER_HEADLESS"),
record_video_dir=video.record_video_dir,
)
page = context.pages[0] if context.pages else await context.new_page()
await page.goto(url, wait_until="domcontentloaded", timeout=60_000)