feat(sessions): expose bounded page metadata - #199
Merged
Merged
Conversation
SarthakWade
added this pull request to stack #202
September 19, 2026 09:58
yashranaway
approved these changes
Sep 19, 2026
yashranaway
left a comment
Collaborator
There was a problem hiding this comment.
session.list stays additive at protocol 0.5. The name array is unchanged. Each detail is a fixed shape: name, isolated, ageMs, status, nullable http(s) URL and title, truncation flags, and untrustedContent: true.
URLs drop userinfo and anything that is not http/https. Title is capped at 1,000 bytes, URL at 8,192. The host lock is released before engine I/O. WebKit reads WKWebView on the main thread. Chromium uses Page.getNavigationHistory plus host navigation flags, not page JS. A session that errors stays unavailable instead of failing the whole list.
CI is green, including SDK generation. Stacks on #198.
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
sessionsarray while adding fixed-shape URL, title, age, isolation, lifecycle, and truncation metadataSecurity
unavailablestates without leaking errorsValidation
pnpm testpnpm test:runtimepnpm test:npmpnpm --filter @headless/web lintpnpm --filter @headless/web buildpnpm --filter @headless/app buildThe full local macOS E2E currently stops before this scenario in the existing start-page address HUD accessibility click (
Headless has no accessible windows). The focused WKWebView G4 flow passes.Closes #196