Title: hub-ui: background messages initialization produces an unhandled trust timeout after 60 seconds · Issue #440 · devframes/devframe · GitHub
Open Graph Title: hub-ui: background messages initialization produces an unhandled trust timeout after 60 seconds · Issue #440 · devframes/devframe
X Title: hub-ui: background messages initialization produces an unhandled trust timeout after 60 seconds · Issue #440 · devframes/devframe
Description: Description With interactive client authentication enabled, leaving a page open without authorizing DevTools produces an unhandled rejection after approximately 60 seconds: Error: [devframe] Timeout waiting for rpc to be trusted In our N...
Open Graph Description: Description With interactive client authentication enabled, leaving a page open without authorizing DevTools produces an unhandled rejection after approximately 60 seconds: Error: [devframe] Timeou...
X Description: Description With interactive client authentication enabled, leaving a page open without authorizing DevTools produces an unhandled rejection after approximately 60 seconds: Error: [devframe] Timeou...
Opengraph URL: https://github.com/devframes/devframe/issues/440
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hub-ui: background messages initialization produces an unhandled trust timeout after 60 seconds","articleBody":"## Description\n\nWith interactive client authentication enabled, leaving a page open without authorizing DevTools produces an unhandled rejection after approximately 60 seconds:\n\n```text\nError: [devframe] Timeout waiting for rpc to be trusted\n```\n\nIn our Nuxt integration, this also triggers Nuxt's development error overlay on an otherwise working application page. The user does not need to open or interact with DevTools for this to happen.\n\n## Environment\n\nThe final aligned environment used to verify the workaround was:\n\n- `@devframes/hub-ui`: 1.2.2\n- Nuxt: 4.6.0\n- `@nuxt/devtools`: 4.0.0-beta.4\n- Vite: 8.3.2\n- Node.js: 24.15.0\n- pnpm: 12.9.1\n- macOS; browser page served through a local HTTPS development proxy\n\n## Reproduction\n\nThe following was reproduced in our existing Nuxt application before dependency alignment (Vite 8.3.0 and a mixed Devframe dependency graph). We separately inspected the pristine published `@devframes/hub-ui@1.2.2` bundle and current upstream source and confirmed the same uncaught timeout call remains. An unpatched minimal 1.2.2 runtime reproduction has not yet been tested:\n\n1. Start the Nuxt application in development mode with Nuxt DevTools enabled and interactive client authentication retained.\n2. Open a working application route in a fresh browser session with no previously authorized DevTools token.\n3. Do not authorize the DevTools client. Leave the page open for more than 60 seconds.\n4. Observe the error above in the browser and forwarded development logs, and the Nuxt error overlay.\n\n## Expected behavior\n\nAn application page should remain usable while DevTools authorization is pending. Background message initialization should wait for authorization, or handle timeout as an expected unauthenticated state, without an unhandled rejection.\n\n## Source analysis\n\nAt upstream commit `56cc92734d4c8cb2c48f34c95053966969a10f97`, [`packages/hub-ui/src/client/state/messages.ts`, line 88](https://github.com/devframes/devframe/blob/56cc92734d4c8cb2c48f34c95053966969a10f97/packages/hub-ui/src/client/state/messages.ts#L88) initializes the feed with:\n\n```ts\ncontext.rpc.ensureTrusted().then(() => refresh())\n```\n\nThe [`refresh()` rejection handler at lines 75–77](https://github.com/devframes/devframe/blob/56cc92734d4c8cb2c48f34c95053966969a10f97/packages/hub-ui/src/client/state/messages.ts#L75-L77) handles message-fetch failures, but does not handle rejection of the preceding `ensureTrusted()` promise.\n\n[`ensureTrusted()` in `rpc-live.ts`, lines 257–278](https://github.com/devframes/devframe/blob/56cc92734d4c8cb2c48f34c95053966969a10f97/packages/devframe/src/client/rpc-live.ts#L257-L278) defaults to `60_000` ms and rejects with the reported error if trust has not been granted. A timeout of zero or less returns the pending trust promise without a deadline.\n\n## Verified downstream workaround / possible fix\n\nOur temporary dependency patch changes the background initialization to:\n\n```ts\ncontext.rpc.ensureTrusted(0).then(() => refresh())\n```\n\nWith this change, our page remained open for 90 seconds without the timeout error or overlay. Authentication remains enabled: `refresh()` still runs only after the trust promise resolves.\n\nAn indefinite background wait appears appropriate here. Alternatively, a handled timeout with subsequent retry on successful authorization could work. Any timeout-handling alternative should still initialize the feed when the user authorizes later than 60 seconds.\n\nA regression test could leave the messages context untrusted beyond the default deadline, assert no unhandled rejection, then authorize and assert that the initial messages fetch runs.\n\n## Related work\n\n[#386](https://github.com/devframes/devframe/pull/386) fixes trust-deadline and authentication-channel cleanup, and intentionally preserves timeout and unlimited-wait behavior. This report concerns the uncaught timeout in the hub UI's background caller, which remains present in the source linked above.","author":{"url":"https://github.com/MiguelFranken","@type":"Person","name":"MiguelFranken"},"datePublished":"2026-10-06T11:45:21Z","url":"https://github.com/devframes/devframe/issues/440"}
| react-profiling | 0 |
| react-import-map | react,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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:02c6120f-d226-8f79-89b0-dd8129f8325d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE58:2FBB44:71EDA8:9FBDB4:6AFB67AB |
| html-safe-nonce | 4bebbabff8e2f4990c868d2c71f8bb2e3ae96a47064d05b03ef8fed59d712ab6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTU4OjJGQkI0NDo3MUVEQTg6OUZCREI0OjZBRkI2N0FCIiwidmlzaXRvcl9pZCI6IjM1OTE2OTQ0ODc4NjYwMDk1MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1fe692efa1896be1f8a769482bd4f4e0ab59c40ae729bb11af48656fab1a4d6a |
| hovercard-subject-tag | issue:5727802190 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/devframes/devframe/440/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6b3d9634a100184a29a43d535dd4194dc3fa8b08c0ac992b378950466b17ff1/devframes/devframe/issues/440 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6b3d9634a100184a29a43d535dd4194dc3fa8b08c0ac992b378950466b17ff1/devframes/devframe/issues/440 |
| og:image:alt | Description With interactive client authentication enabled, leaving a page open without authorizing DevTools produces an unhandled rejection after approximately 60 seconds: Error: [devframe] Timeou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MiguelFranken |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| go-import | github.com/devframes/devframe git https://github.com/devframes/devframe.git |
| octolytics-dimension-user_id | 279879373 |
| octolytics-dimension-user_login | devframes |
| octolytics-dimension-repository_id | 1231722386 |
| octolytics-dimension-repository_nwo | devframes/devframe |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1231722386 |
| octolytics-dimension-repository_network_root_nwo | devframes/devframe |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width