Commit Graph
4 Commits
Author SHA1 Message Date
Rudy Mizrahi Celekli 34b90ae647 fix(kernel): preserve the default idle timeout for undefined options (#904)
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-07 23:48:55 +02:00
Oskar Kwaśniewski f88233fdce feat(web): locale and timezoneId options set the language and time zone every attempt runs in (#786)
* feat(web): locale and timezoneId options set the language and time zone every attempt runs in

* docs(web): timezoneId validation is best effort, the browser has the final word
2026-10-03 17:40:21 +02:00
Oskar Kwaśniewski f5bc45ac14 fix(web,kernel): Kernel downloads, crashed-worker leaks, icon-font names, and clearer attempt-scope limits (#669)
* fix(web): names read generated content and drop icon-font glyphs

The tree named <button><i class="fa fa-sign-in"> Login</i></button> "Login"
while getByRole read the ::before glyph and found nothing. Names now read
::before/::after content as accname, Chrome, and Playwright do; private-use
glyphs are dropped from the reported name, and a role query's string name
tolerates them in the browser's name.

* fix(web,kernel): waitForDownload works on a Kernel browser

A remote browser saves downloads to its own disk, so Playwright's saveAs
over CDP always failed with 'canceled'. BrowserProvider gains an optional
downloads { dir, read }: the engine points the context's downloads at dir
on the browser's machine and reads the finished file back. kernel()
implements it with the browser filesystem API. Without it, the failure
names the provider.

* fix(web): forward worker-side lease progress to the reporter

Attempt-scope and replacement leases were acquired with a discarded log,
so Kernel's live-view line never showed. Use the worker's init log.

* fix(web,kernel): sweep leases a dead worker left open

A worker killed mid-attempt in kernel({ scope: 'attempt' }) leaked its
browser until Kernel's timeout. BrowserProvider gains an optional sweep,
called once per target in finish after the held leases are released;
kernel() deletes every active browser tagged with the run and target.

* fix(web,e2e): name persistent-context limits early

app.clearState() in attempt scope said 'engine web does not implement it';
the engine now refuses it naming the mode. A session consumed on a target
without a state capability fails selection with COLLECTION_ERROR instead
of failing session.save() after the setup test logged in.

* fix(kernel): trim Kernel error messages; docs: attempt scope rules out userAgent

The SDK keeps the newline Kernel ends an error body with, splitting the
run's error line. Trim every SDK failure's message.

* fix(web): absolute downloads.dir; crosscheck spaces glyphs as the tree does

Also guards the provider-downloads test cleanup and notes in the changeset
that a role query by a glyph-only control's title finds nothing.
2026-09-30 14:40:47 +02:00
Oskar Kwaśniewski 4e7bb643ac refactor(kernel)!: rename @e2e-dev/integrations to @e2e-dev/kernel (#659)
* refactor(kernel)!: rename @e2e-dev/integrations to @e2e-dev/kernel

One package per hosted service instead of subpaths. kernel() now imports
from the package root; @onkernel/sdk and @e2e-dev/web are required peers.

* docs(agents): list @e2e-dev/integrations as a retired name

* docs(kernel): address review on seams, retired name, live view URL
2026-09-29 23:14:04 +02:00