Repository navigation
chore(main): release 0.3.1 - #3
Closed
github-actions[bot] wants to merge 1 commit into
Closed
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 I have created a release beep boop
0.3.1 (2026-07-16)
Documentation
This PR was generated with Release Please. See documentation.