René's URL Explorer Experiment


Title: fix(hub-ui): bridge tools to the inspected page by SaKaNa-Y · Pull Request #363 · devframes/devframe · GitHub

Open Graph Title: fix(hub-ui): bridge tools to the inspected page by SaKaNa-Y · Pull Request #363 · devframes/devframe

X Title: fix(hub-ui): bridge tools to the inspected page by SaKaNa-Y · Pull Request #363 · devframes/devframe

Description: ImportantPlease take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author). If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence. I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏) I hold myself to this standard for every PR, regardless of its size. Problem Vue Tracer and A11y opened from the Vite DevTools browser extension execute against the hub UI provider document instead of the inspected app. Action setup can also miss the first activation, and stale inspected-page sessions can deactivate newer sessions' actions. Fix Add a transport-neutral createInPageChannelRelay and an inspected-page endpoint in @devframes/hub-ui. Page scripts and actions execute in the inspected document; custom renderers stay in the hub UI provider document. Preserve existing panel channel APIs. Complete action setup before activation, serialize remote activation and teardown, and track action ownership per connection. Preserve main's trusted eager initialization and setup cache while routing eager page/action scripts to the inspected document. Ignore stale page preparation after navigation. Deduplicate pending document handshakes and retry every second with an attempt-specific identity. Close unclaimed or superseded grant ports and explicitly end their opposite endpoints, including when heartbeat is disabled. Panels send cancellation on close even before receiving a port. Relays match the originating window, origin, and handshake identity before cancelling, stop pending retries, and release late grants. Preserve direct in-page connections alongside relayed panels. The demo action now performs its work directly on each invocation instead of accumulating activation subscriptions. Actions retain the per-activation execution contract established in #387. Review follow-up: Vue Tracer The demo action no longer accumulates activation subscriptions. The Tracer-owned dock and element-click subscription cleanup is implemented separately in antfu/vite-plugin-vue-tracer#13. This preserves the per-activation action contract established in #387; one-time framework setup alone would leave Tracer's inner click-listener leak intact. Merge and release order Merge antfu/vite-plugin-vue-tracer#13 and publish a Tracer release containing the subscription fix. Merge #363 and publish the affected Devframe packages, including devframe, @devframes/hub, and @devframes/hub-ui. Upgrade the dependencies used by vitejs/devtools#563, validate the extension with both published fixes, then merge and release that adapter. The first two fixes are independently mergeable and may be reviewed in parallel. The recommended order above puts the Tracer lifecycle fix first; the extension integration remains the final step. Published-package validation should include repeated Tracer activation, cancellation, and A11y inspection against the inspected app. Verification pnpm lint and pnpm knip: passed. pnpm build: all 28 tasks passed. pnpm typecheck: coverage verification and all 40 tasks passed. pnpm test --run: 145 test files passed; 1,621 tests passed and 9 skipped, including API snapshots. Three cancellation regressions failed before the fix and passed afterward: closing a panel before the page script loads, with a delayed page grant, and with a delayed transport grant. These run with heartbeat disabled. Additional coverage rejects cancellation from another window, origin, protocol version, channel, panel, or instance. Full Tracer/A11y browser UI end-to-end scenarios were not rerun. Published-package validation remains the extension release gate.

Open Graph Description: ImportantPlease take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not...

X Description: ImportantPlease take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not...

Opengraph URL: https://github.com/devframes/devframe/pull/363

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2eec86f5-be8d-2f34-d421-3ac33d5fc21e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEAA2:250D58:1BBF31:2704A8:6AFB6B08
html-safe-noncee30b0d19baadeb51f82d465d7ba113369cc82a111f2f87f675f85d271116c126
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUEyOjI1MEQ1ODoxQkJGMzE6MjcwNEE4OjZBRkI2QjA4IiwidmlzaXRvcl9pZCI6IjU4OTIxNDEyMDEzODQ3NjIxMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac053d539a52c20966b8527ee01bfc2a51766f8f376f6334b4f5563b85d7b796bf
hovercard-subject-tagpull_request:4449860021
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/devframes/devframe/pull/363/files
twitter:imagehttps://avatars.githubusercontent.com/u/185575200?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/185575200?s=400&v=4
og:image:altImportantPlease take a moment to read this. Thank you! I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/devframes/devframe git https://github.com/devframes/devframe.git
octolytics-dimension-user_id279879373
octolytics-dimension-user_logindevframes
octolytics-dimension-repository_id1231722386
octolytics-dimension-repository_nwodevframes/devframe
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1231722386
octolytics-dimension-repository_network_root_nwodevframes/devframe
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/363/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F363%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F363%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=devframes%2Fdevframe
Reloadhttps://github.com/devframes/devframe/pull/363/files
Reloadhttps://github.com/devframes/devframe/pull/363/files
Reloadhttps://github.com/devframes/devframe/pull/363/files
devframeshttps://github.com/devframes
devframehttps://github.com/devframes/devframe
Codehttps://github.com/devframes/devframe
Issues12 (12)https://github.com/devframes/devframe/issues
Pull requests13 (13)https://github.com/devframes/devframe/pulls
Actionshttps://github.com/devframes/devframe/actions
Security and qualityhttps://github.com/devframes/devframe/security
Insightshttps://github.com/devframes/devframe/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fdevframes%2Fdevframe%2Fissues%2Fnew%2Fchoose
SaKaNa-Yhttps://github.com/SaKaNa-Y
devframes:mainhttps://github.com/devframes/devframe/tree/main
SaKaNa-Y:fix/inspected-page-bridgehttps://github.com/SaKaNa-Y/devframe/tree/fix/inspected-page-bridge
Conversation 9 https://github.com/devframes/devframe/pull/363
Commits 7 https://github.com/devframes/devframe/pull/363/commits
Checks 12 https://github.com/devframes/devframe/pull/363/checks
Files changed https://github.com/devframes/devframe/pull/363/files
Please reload this pagehttps://github.com/devframes/devframe/pull/363/files
fix(hub-ui): bridge tools to the inspected page https://github.com/devframes/devframe/pull/363/files#top
Show all changes 7 commits https://github.com/devframes/devframe/pull/363/files
90dd140 fix(hub-ui): bridge tools to the inspected page SaKaNa-Y Sep 5, 2026 https://github.com/devframes/devframe/pull/363/commits/90dd140927f017c81c30c4fac3623d112c355bd7
ed7e957 chore: merge main into inspected-page bridge SaKaNa-Y Sep 11, 2026 https://github.com/devframes/devframe/pull/363/commits/ed7e9579faae870456208e2ceeec8bcb293597c1
4559790 fix(hub-ui): scope action cleanup to its owning connection SaKaNa-Y Sep 11, 2026 https://github.com/devframes/devframe/pull/363/commits/4559790473e487a90c4e1d55a707b6a1da95b337
7f66ae0 fix(hub-ui): reconcile inspected-page activation with main SaKaNa-Y Sep 16, 2026 https://github.com/devframes/devframe/pull/363/commits/7f66ae0fdbd73bd22137730e8a9108a06717732e
66210f6 fix(devframe): clean up and deduplicate relay handshakes SaKaNa-Y Sep 16, 2026 https://github.com/devframes/devframe/pull/363/commits/66210f674888fd408e93856f576e006ba3f7ef25
c7a2862 fix(demo): execute dock actions without accumulating listeners SaKaNa-Y Sep 16, 2026 https://github.com/devframes/devframe/pull/363/commits/c7a28624e70fb2f25484fc34624039961c76834e
a1f91e5 fix(devframe): cancel pending relay handshakes when panels close SaKaNa-Y Sep 16, 2026 https://github.com/devframes/devframe/pull/363/commits/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b
Clear filters https://github.com/devframes/devframe/pull/363/files
Please reload this pagehttps://github.com/devframes/devframe/pull/363/files
Please reload this pagehttps://github.com/devframes/devframe/pull/363/files
3.events.md https://github.com/devframes/devframe/pull/363/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
5.browser-api.md https://github.com/devframes/devframe/pull/363/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
index.ts https://github.com/devframes/devframe/pull/363/files#diff-13ef53ceaa0c83d233c34652a1e045b4e464edfa03c47e793a5501b16c9bc717
index.ts https://github.com/devframes/devframe/pull/363/files#diff-d9dbe00ee98ae2c4a8f84edc6304a8397372df664f1921d248a957a7211dd2fa
panel.ts https://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
protocol.ts https://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
relay.test.ts https://github.com/devframes/devframe/pull/363/files#diff-d90e8d1143a1edf82bd3a52b82de320672d46d6852668f0a466391b4a79ea2d6
relay.ts https://github.com/devframes/devframe/pull/363/files#diff-46bfafd90c0b5cbb8260050b2c15b13f29c1599ec24981d96a5c43dfd39a88c0
main.ts https://github.com/devframes/devframe/pull/363/files#diff-4d7a16fe91a812234971a5db6b78771e3d5d9839fb10fe0f4eedfcead0b21016
action-activation.test.ts https://github.com/devframes/devframe/pull/363/files#diff-6dceb0ed07649f85b9326fb4cfea257f9c73a9c28d4bb65077b60a7f02d5c28e
context.ts https://github.com/devframes/devframe/pull/363/files#diff-dc257c09eff9e69244fd9cd31fc8a844f1f28e59006c95d1a46817456ebfa435
inspected-page-context.test.ts https://github.com/devframes/devframe/pull/363/files#diff-4f3721b4c039b81836268df1f437c66a4f86cce2c96c824bbefe00397f61990f
inspected-page.test-utils.ts https://github.com/devframes/devframe/pull/363/files#diff-0f6fb48801bc8560dead1b67717cc2373ee407bc8148901d4b0c9b7da33798fb
inspected-page.test.ts https://github.com/devframes/devframe/pull/363/files#diff-c3d0a8e8ef7f4c6e434f3da23b7a553e403b0b58d1c84c952e0507cffb4ce64c
inspected-page.ts https://github.com/devframes/devframe/pull/363/files#diff-1dda7253a9da7dfeb1cf2f97b29ee3e311a218de91e2b5db97253147bb488bfb
events.ts https://github.com/devframes/devframe/pull/363/files#diff-958b91a1e80f39cb5c79e1ec2ec4352bdd7a84f1b18323b72676f0d591413357
constants.snapshot.d.ts https://github.com/devframes/devframe/pull/363/files#diff-6c82c0720a028ff0d529aa9dfeda8e53a46a56fc840fc025d989d35e8458165d
in-page-channel.snapshot.d.ts https://github.com/devframes/devframe/pull/363/files#diff-7f5704a645511654393d0c57bddc9797bd89dcc330e6ed3863d287acafa926a0
in-page-channel.snapshot.js https://github.com/devframes/devframe/pull/363/files#diff-d17d3c1ae839aa1c0d789a96667728ad92a508d23c7180a8860f60d669f80829
docs/content/8.references/3.events.mdhttps://github.com/devframes/devframe/pull/363/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/docs/content/8.references/3.events.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
https://github.com/devframes/devframe/pull/363/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
https://github.com/devframes/devframe/pull/363/files#diff-e690d18d47be4175f8635254e7bdf62c3701b3a0465b7f6691e0988646ca34cd
docs/content/8.references/5.browser-api.mdhttps://github.com/devframes/devframe/pull/363/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/docs/content/8.references/5.browser-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
https://github.com/devframes/devframe/pull/363/files#diff-a8f7b2475c61a0b2b9cad33c9a47ddd3dc0b1466e07b6056b484493bd44de722
examples/demo-dock-client/src/index.tshttps://github.com/devframes/devframe/pull/363/files#diff-13ef53ceaa0c83d233c34652a1e045b4e464edfa03c47e793a5501b16c9bc717
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/examples/demo-dock-client/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-13ef53ceaa0c83d233c34652a1e045b4e464edfa03c47e793a5501b16c9bc717
packages/devframe/src/in-page-channel/index.tshttps://github.com/devframes/devframe/pull/363/files#diff-d9dbe00ee98ae2c4a8f84edc6304a8397372df664f1921d248a957a7211dd2fa
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/packages/devframe/src/in-page-channel/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-d9dbe00ee98ae2c4a8f84edc6304a8397372df664f1921d248a957a7211dd2fa
https://github.com/devframes/devframe/pull/363/files#diff-d9dbe00ee98ae2c4a8f84edc6304a8397372df664f1921d248a957a7211dd2fa
packages/devframe/src/in-page-channel/panel.tshttps://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/packages/devframe/src/in-page-channel/panel.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
https://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
https://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
https://github.com/devframes/devframe/pull/363/files#diff-d3c87fcd2bb132618019263336291cde9085bfb709feded4b489aee87b67c4bd
packages/devframe/src/in-page-channel/protocol.tshttps://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
View file https://github.com/devframes/devframe/blob/a1f91e5fbc1ae89ef8e24d57bb922dd11de4570b/packages/devframe/src/in-page-channel/protocol.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/363/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
https://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
https://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
https://github.com/devframes/devframe/pull/363/files#diff-591204d8ff9eaf2f9f8f0025ae90d445218e3d481f0d8b86d41ce7f85134cd4f
Please reload this pagehttps://github.com/devframes/devframe/pull/363/files
Please reload this pagehttps://github.com/devframes/devframe/pull/363/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.