Skip to content

chore(main): release 0.3.1 - #3

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main--components--cuttle-browser
Closed

github-actions[bot] wants to merge 1 commit into
mainfrom
release-please--branches--main--components--cuttle-browser

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

0.3.1 (2026-07-16)

Documentation

  • plans: add cuttle Go rewrite + remote backends plan (aaac1b7)

This PR was generated with Release Please. See documentation.

@tenequm tenequm closed this Jul 16, 2026
tenequm added a commit that referenced this pull request Sep 19, 2026
When an in-page modal (an aria `dialog`/`alertdialog`, not a native
alert) covers the page, a `cuttle pw click` on anything behind it fails
after the driver's 5s timeout with a bare `TimeoutError`, and the agent
is left to work out why.

## What changes

- When a verb fails and the driver's call log says another element
`intercepts pointer events` (click, dblclick, hover, check and the like
behind an overlay), `cuttle pw` takes one snapshot, capped at 10s. If a
dialog or alertdialog holds focus (`[active]` in its subtree, which a
modal traps), it appends one line to stderr naming the dialog (its name,
else its first heading) and the ref of a button whose whole name only
dismisses it (Close, Dismiss, Not now, No thanks, X), falling back to
`press Escape`. A write-shaped button such as "Cancel subscription" or
"Close account" is never suggested.
- The snapshot is read by a small detector in
`internal/cli/playwright.go` (not jev), which handles single-quoted keys
like `'dialog "Step 1: Sign in"'`; a new depguard rule keeps
`internal/jev` imported only by `jevbrowse.go`, so it stays removable.
- Stdout, exit codes and flags are unchanged. A failed snapshot, no
focused dialog, or a `-s`/`--session` invocation (whose page the
default-session snapshot cannot see) prints nothing extra.
- `fill` and `type` do not hit-test and do not time out behind a modal,
so they get no hint.
- SKILL.md gotcha #3 gains one sentence.

## Verified live

On a throwaway container, against local pages:

- A `<dialog>` opened with `showModal()`, holding "Cancel subscription"
and "Dismiss": `pw click <behind>` exited 1 with stdout byte-identical
to `main`, plus on stderr `cuttle: an open dialog covers the page: Sign
in to continue - dismiss it first (e.g. cuttle --name p99-test pw click
<Dismiss ref>)`. `hover` got the same line. Clicking that ref closed the
dialog and the retried click succeeded.
- A dialog named `Step 1: Sign in` (a single-quoted snapshot key) was
named correctly.
- A non-modal cookie banner holding focus: a timeout on a disabled
button printed nothing extra, and a normal click succeeded.
- `-s=cuttle click <behind>` printed nothing extra.

## Release notes

`cuttle pw` now explains a click, hover or other pointer action that
times out behind an open in-page dialog: it adds one stderr line naming
the dialog and the ref of a button that only closes it, else `press
Escape`. Output and exit codes are otherwise unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant