Repository navigation
Conversation
snapshotTab reads a tab through chrome.scripting, without the debugger and without changing focus. Each entry has a role, accessible name, text, state, visibility, and a stable ref. actOnRef clicks or types that ref with the existing soft click and type gates, then reports URL changes, new console errors, and new failed network requests. Co-authored-by: werbel.ted <werbel.ted@gmail.com>
A taken port left the previous listening callback attached. On the macOS Node 22 runner that stack sat until two integration tests hit the 30s timeout. The retry now closes the failed server first, and a listen or extension socket that never settles gives up instead of waiting forever. Co-authored-by: werbel.ted <werbel.ted@gmail.com>
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.
Summary
Adds a semantic page map for a tab from
listTabs, and a way to act on a ref from that map, without attaching the debugger and without changing which tab is active.snapshotTabwalks the page in a content script and returns role, accessible name, text, state, visibility, and a stable ref (e1,e2, …). The same element keeps its ref until the document is replaced. Asleep tabs are reported and not reloaded. The map is capped at 80 elements. Private details are stripped in the page before the result leaves.actOnRefclicks or types that ref using the existing soft click and type gates (workedorneeds a real gesture). After the action it returns a short delta: whether the URL changed, console errors that appeared, and network requests that failed.chrome.debugger, activates a tab, or focuses a window.actOnRefis gated like other input (popup switch,--allow-input/ CLI--allow-actions, and the same origin rules).snapshotTabfollows thereadTabgate.AGE-824
Test plan