Commit Graph

2 Commits

Author SHA1 Message Date
sergioperezcheco 26b9457e17 style: apply ruff format to test file
Fix code-style CI failure (model_construct call fits on one line).
2026-07-28 09:12:29 +08:00
sergioperezcheco 340851b09d fix(downloads): fire complete callbacks for remote-browser downloads
On a remote browser, the downloadProgress(completed) handler only dispatched FileDownloadedEvent on the event bus and never invoked the registered _download_complete_callbacks. The local branch does this inside _track_download(), so DefaultActionWatchdog._execute_click_with_download_detection waited on its on_download_complete asyncio.Event until the 30s timeout even though the download had finished.

Call the complete callbacks (with the same complete_info shape _track_download uses) right before dispatching the event in the remote branch. Adds a regression test that drives the registered downloadProgress handler and asserts the callback fires; the test fails on the unpatched code.
2026-07-28 09:12:29 +08:00