René's URL Explorer Experiment


Title: fix(hub-ui): initialize dock page scripts before activation by dvcolomban · Pull Request #387 · devframes/devframe · GitHub

Open Graph Title: fix(hub-ui): initialize dock page scripts before activation by dvcolomban · Pull Request #387 · devframes/devframe

X Title: fix(hub-ui): initialize dock page scripts before activation by dvcolomban · Pull Request #387 · devframes/devframe

Description: Background (Why) An iframe dock's page script can register commands used by notifications before the user opens its panel. The reference hub UI waits for activation, leaving those commands unavailable until then. Changes (What) Add optional eager: true to the existing ClientScriptEntry descriptor, defaulting to lazy initialization as discussed in review. Both the reference hub UI and the headless runtime wait for RPC trust before eager initialization. Activation shares pending setup, and failed setup remains retryable. Cache setup per RPC connection and import descriptor; action clicks still execute each time. Keep the existing script fields: clientScript on iframe docks, action on action docks, and renderer on custom-render docks. The common dock base and JSON-render API are unchanged. Verification (Testing) 53 focused tests pass across the headless runtime, renderer fixtures, and reference UI context/script suites. Coverage includes opt-in eager initialization, default lazy behavior, trust gating, separate RPC connections, concurrent activation and setup failure/retry. Scoped hub/hub-ui type checks and changed-file lint pass. The rebuilt assets at 51d41004 were checked in the in-app Chromium browser before the subsequent trust-race correction. Embedded iframe setup remained lazy unless opted in; eager setup ran before panel activation, stayed deduplicated on activation, and registered a working page-local command. A standalone page initialized its own script instance and its command remained functional after closing the embedded page. Commit 91291de9 adds six regression cases for trust revocation during dynamic import and while iframe setup completes. Both runtimes recheck trust before invocation/activation, and interrupted setup remains retryable after re-authentication. All 53 focused tests, changed-file lint and both package type checks pass. CI is running on this revision. The previous revision failed two Node 22 plugin-code-server declaration snapshots; that failure is retained pending the new run. The PR remains draft.

Open Graph Description: Background (Why) An iframe dock's page script can register commands used by notifications before the user opens its panel. The reference hub UI waits for activation, leaving those commands unav...

X Description: Background (Why) An iframe dock's page script can register commands used by notifications before the user opens its panel. The reference hub UI waits for activation, leaving those commands ...

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

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:29f75509-68ec-8fbd-587e-cef3b79db67b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC726:34DD79:AE0853:F6487C:6AFB7C80
html-safe-noncea29ad041c3e9538fd9844057607a640b7d09d66ab22e3e93bcd62b4201a69550
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzI2OjM0REQ3OTpBRTA4NTM6RjY0ODdDOjZBRkI3QzgwIiwidmlzaXRvcl9pZCI6IjE0OTY0NjYxMjIxMTM1MTQ2MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac62f22f3ddeba2bebc2785054331402002bf4f0f6edc53f8ad094cb44628cfa8a
hovercard-subject-tagpull_request:4521579342
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/387/files
twitter:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/90617742?s=400&v=4
og:image:altBackground (Why) An iframe dock's page script can register commands used by notifications before the user opens its panel. The reference hub UI waits for activation, leaving those commands unav...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneef32892d4269fb87b55e81cc4ba8d86e0f16aa28446ffbf46cba8be5179ab188
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
releasebc3703b4dcbe820d1284ef63c88b001c850be25e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/devframes/devframe/pull/387/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevframes%2Fdevframe%2Fpull%2F387%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%2F387%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/387/files
Reloadhttps://github.com/devframes/devframe/pull/387/files
Reloadhttps://github.com/devframes/devframe/pull/387/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
antfuhttps://github.com/antfu
devframes:mainhttps://github.com/devframes/devframe/tree/main
dvcolomban:dvcol/dock-page-scriptshttps://github.com/dvcolomban/devframe/tree/dvcol/dock-page-scripts
Conversation 23 https://github.com/devframes/devframe/pull/387
Commits 5 https://github.com/devframes/devframe/pull/387/commits
Checks 12 https://github.com/devframes/devframe/pull/387/checks
Files changed https://github.com/devframes/devframe/pull/387/files
Please reload this pagehttps://github.com/devframes/devframe/pull/387/files
fix(hub-ui): initialize dock page scripts before activation https://github.com/devframes/devframe/pull/387/files#top
Show all changes 5 commits https://github.com/devframes/devframe/pull/387/files
6591da9 fix(hub-ui): initialize dock page scripts before activation dvcolomban Sep 13, 2026 https://github.com/devframes/devframe/pull/387/commits/6591da997fd35f81bfa1dc015ebf2d5e35b41c77
e2b7d82 test(hub): provide RPC events in renderer fixtures dvcolomban Sep 14, 2026 https://github.com/devframes/devframe/pull/387/commits/e2b7d82e1ed8fd0caf5da423a465e2b9f61db6f8
51d4100 fix(hub): limit eager scripts to existing dock entry points dvcolomban Sep 14, 2026 https://github.com/devframes/devframe/pull/387/commits/51d4100497e4ea118b5935122c62740775e86ca6
91291de fix(hub): recheck trust after client script imports dvcolomban Sep 14, 2026 https://github.com/devframes/devframe/pull/387/commits/91291de9f351ee7bac8664dfa0c46636bc81393c
b3ff169 fix(hub): keep custom-render renderers activation-gated and enable ea… antfubot Sep 15, 2026 https://github.com/devframes/devframe/pull/387/commits/b3ff1695800e9e93dc56f85246b08a87a5e460cf
Clear filters https://github.com/devframes/devframe/pull/387/files
Please reload this pagehttps://github.com/devframes/devframe/pull/387/files
Please reload this pagehttps://github.com/devframes/devframe/pull/387/files
17.client-context.md https://github.com/devframes/devframe/pull/387/files#diff-c784c88b6b5e6ccf7ba2ee3e28cd87ef392c930f4ac827518633a85cc6c4c4cf
6.hub-api.md https://github.com/devframes/devframe/pull/387/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
next-devframe-hub.ts https://github.com/devframes/devframe/pull/387/files#diff-76b747879ca508676366a4a13ecc1e061914d0d9fd26c04792a98f9047aa3f80
vite.config.ts https://github.com/devframes/devframe/pull/387/files#diff-0308d0f6b4003487988c7fa9deef0d69c6a93970c556115c7dd1da19216ae8e4
devframe.ts https://github.com/devframes/devframe/pull/387/files#diff-753444a22cd40457a3aeb4a48d0bda1e9c7768bca343ccf72f16699131320795
client-script.integration.test.ts https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
context.test.ts https://github.com/devframes/devframe/pull/387/files#diff-c5a0fced2f012f06231a229efc78e7816be2f3f9566e27ab11a12e0f2c01d17b
context.ts https://github.com/devframes/devframe/pull/387/files#diff-dc257c09eff9e69244fd9cd31fc8a844f1f28e59006c95d1a46817456ebfa435
setup-script.ts https://github.com/devframes/devframe/pull/387/files#diff-cbe2c4261dde2880d5dae0e4c200d062bb569e1f6676341362cd19ccda6a8294
host.test.ts https://github.com/devframes/devframe/pull/387/files#diff-ce322f54bc9337c59f3fef57316240bb9de3227fd33ac3177b6f6224216ac920
renderers.test.ts https://github.com/devframes/devframe/pull/387/files#diff-6a8312fa733c35db7a936f0198d564fe03ca449ec9fa6144b8af1fcd446e7769
host.ts https://github.com/devframes/devframe/pull/387/files#diff-114012e287605d80c28b5b0c70f2c4e6b7f05c131f06e500427c42730a953425
docks.ts https://github.com/devframes/devframe/pull/387/files#diff-40fbe45827daa779fd73550378eedd2ed5c05e53d5aeb604bfd374651abb992c
index.snapshot.d.ts https://github.com/devframes/devframe/pull/387/files#diff-db64e389f351b7be6e78012df747772ce10c467c799d8e47a05290539673b278
index.snapshot.d.ts https://github.com/devframes/devframe/pull/387/files#diff-e36c6d402239a03e9a6e3a7c285d18780f3584e9dd275c7e5220a6fc41fb160d
docs/content/1.guide/17.client-context.mdhttps://github.com/devframes/devframe/pull/387/files#diff-c784c88b6b5e6ccf7ba2ee3e28cd87ef392c930f4ac827518633a85cc6c4c4cf
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/docs/content/1.guide/17.client-context.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-c784c88b6b5e6ccf7ba2ee3e28cd87ef392c930f4ac827518633a85cc6c4c4cf
https://github.com/devframes/devframe/pull/387/files#diff-c784c88b6b5e6ccf7ba2ee3e28cd87ef392c930f4ac827518633a85cc6c4c4cf
docs/content/8.references/6.hub-api.mdhttps://github.com/devframes/devframe/pull/387/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/docs/content/8.references/6.hub-api.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
https://github.com/devframes/devframe/pull/387/files#diff-c242156e3ff17216da5a8d155312307ff263e33ba2d1f0e8c0f7d444b793a74b
examples/custom-hub-next/src/client/devframe/next-devframe-hub.tshttps://github.com/devframes/devframe/pull/387/files#diff-76b747879ca508676366a4a13ecc1e061914d0d9fd26c04792a98f9047aa3f80
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/examples/custom-hub-next/src/client/devframe/next-devframe-hub.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-76b747879ca508676366a4a13ecc1e061914d0d9fd26c04792a98f9047aa3f80
https://github.com/devframes/devframe/pull/387/files#diff-76b747879ca508676366a4a13ecc1e061914d0d9fd26c04792a98f9047aa3f80
https://github.com/devframes/devframe/pull/387/files#diff-76b747879ca508676366a4a13ecc1e061914d0d9fd26c04792a98f9047aa3f80
examples/custom-hub-vite/vite.config.tshttps://github.com/devframes/devframe/pull/387/files#diff-0308d0f6b4003487988c7fa9deef0d69c6a93970c556115c7dd1da19216ae8e4
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/examples/custom-hub-vite/vite.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-0308d0f6b4003487988c7fa9deef0d69c6a93970c556115c7dd1da19216ae8e4
https://github.com/devframes/devframe/pull/387/files#diff-0308d0f6b4003487988c7fa9deef0d69c6a93970c556115c7dd1da19216ae8e4
packages/devframe/src/types/devframe.tshttps://github.com/devframes/devframe/pull/387/files#diff-753444a22cd40457a3aeb4a48d0bda1e9c7768bca343ccf72f16699131320795
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/packages/devframe/src/types/devframe.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-753444a22cd40457a3aeb4a48d0bda1e9c7768bca343ccf72f16699131320795
https://github.com/devframes/devframe/pull/387/files#diff-753444a22cd40457a3aeb4a48d0bda1e9c7768bca343ccf72f16699131320795
packages/hub-ui/src/client/state/client-script.integration.test.tshttps://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/packages/hub-ui/src/client/state/client-script.integration.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
https://github.com/devframes/devframe/pull/387/files#diff-b8181422e317754042b42616a78a256ae27959a05a267d6dba0668b2903adffc
packages/hub-ui/src/client/state/context.test.tshttps://github.com/devframes/devframe/pull/387/files#diff-c5a0fced2f012f06231a229efc78e7816be2f3f9566e27ab11a12e0f2c01d17b
View file https://github.com/dvcolomban/devframe/blob/b3ff1695800e9e93dc56f85246b08a87a5e460cf/packages/hub-ui/src/client/state/context.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/devframes/devframe/pull/387/{{ revealButtonHref }}
https://github.com/devframes/devframe/pull/387/files#diff-c5a0fced2f012f06231a229efc78e7816be2f3f9566e27ab11a12e0f2c01d17b
https://github.com/devframes/devframe/pull/387/files#diff-c5a0fced2f012f06231a229efc78e7816be2f3f9566e27ab11a12e0f2c01d17b
Please reload this pagehttps://github.com/devframes/devframe/pull/387/files
Please reload this pagehttps://github.com/devframes/devframe/pull/387/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.