Title: hub-ui-onboard: default terminal confirmation is unusable under Nuxt 5's nuxi · Issue #448 · devframes/devframe · GitHub
Open Graph Title: hub-ui-onboard: default terminal confirmation is unusable under Nuxt 5's nuxi · Issue #448 · devframes/devframe
X Title: hub-ui-onboard: default terminal confirmation is unusable under Nuxt 5's nuxi · Issue #448 · devframes/devframe
Description: Summary Since v1.2.5 (#445), the default onConfirm of @devframes/hub-ui-onboard (confirmInTerminal() on process.stdin) asks before each panel Install. It never installs without consent, but under Nuxt 5's CLI the developer often can't se...
Open Graph Description: Summary Since v1.2.5 (#445), the default onConfirm of @devframes/hub-ui-onboard (confirmInTerminal() on process.stdin) asks before each panel Install. It never installs without consent, but under N...
X Description: Summary Since v1.2.5 (#445), the default onConfirm of @devframes/hub-ui-onboard (confirmInTerminal() on process.stdin) asks before each panel Install. It never installs without consent, but under N...
Opengraph URL: https://github.com/devframes/devframe/issues/448
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"hub-ui-onboard: default terminal confirmation is unusable under Nuxt 5's nuxi","articleBody":"## Summary\n\nSince v1.2.5 (#445), the default `onConfirm` of `@devframes/hub-ui-onboard` (`confirmInTerminal()` on `process.stdin`) asks before each panel Install. It never installs without consent, but under Nuxt 5's CLI the developer often can't see the question, or can't answer it. #445 expected that \"nuxi forks the dev server with an inherited stdin, so the default prompt is expected to work there\". That is not what happens with `@nuxt/cli-nightly` 4.0.1.\n\n## What nuxi does\n\n- The **first** dev server runs inside the nuxi process. Restarts move it to a pre-warmed fork (`ForkPool` in `@nuxt/cli-nightly/dist/dev-*.mjs`).\n- In the interactive TUI (the default in a terminal of at least 40x10), the nuxi process holds stdin in raw mode for single-key shortcuts. It captures the dev server's logs, and forks get `stdio: ['ignore', 'pipe', 'pipe', 'ipc']`.\n- In plain mode (`NUXT_TUI=plain`, or a small terminal), the nuxi process reads stdin with a `readline` for line shortcuts (`r`, `o`, `u`, `qr`, `y` = copy URL, `c`, `q`, `h`). Forks inherit the TTY.\n\n## Reproduction\n\n`nuxi dev` (Nuxt 5 nightly, `@nuxt/cli-nightly` 4.0.1) under a 120x40 PTY, on a project where `@nuxt/devtools-onboard` calls `createOnboarding()` without `onConfirm`. Install is triggered with a same-origin `POST /__devtools/__onboard/install`.\n\n| nuxi mode | Dev server runs in | What happens on Install |\n| --- | --- | --- |\n| TUI, first boot | nuxi process (stdin raw and flowing, owned by the TUI) | DF9005 is folded into the TUI's log capture. The developer only sees \"⚠ N warnings\". The next keypress answers it as a raw chunk, so pressing `w` or `l` to read the warning refuses the install (403). |\n| TUI, after any restart | fork, stdin `/dev/null` | DF9006, refused at once (403 in 23 ms). Install can never succeed after the first restart. |\n| plain, first boot | nuxi process | Works, but `y⏎` also runs nuxi's own `y` shortcut (copy server URL) |\n| plain, after a restart | fork that shares the TTY with the parent's `readline` | The parent reads the line, so `once('data')` never fires. The POST and the shared `asking` promise stay open forever, and the panel stays on \"Confirm in your terminal...\". |\n\n## Possible directions\n\n- When the input is a TTY that something else holds in raw mode (`input.isRaw === true`), refuse at once with a clear diagnostic. That beats letting an unrelated keypress answer a question nobody can see.\n- Don't leave a question that can never be answered open forever: for example, refuse after a bounded wait, so the panel shows `messages.refused`.\n- Fix the nuxi claim in the guide, and recommend that hosts whose CLI owns the terminal pass `onConfirm` (ideally something nuxi provides that routes the prompt through its TUI).\n\nDownstream: nuxt/devtools#1126 upgrades to v1.2.5, keeps the default `onConfirm` (fails closed), and lists this as a known gap. refs nuxt/nuxt#36581\n\nThis issue was written with the help of an AI agent.\n","author":{"url":"https://github.com/antfubot","@type":"Person","name":"antfubot"},"datePublished":"2026-10-14T07:05:39Z","url":"https://github.com/devframes/devframe/issues/448"}
| 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:6c5182ec-5063-0659-bbeb-bdaa85a8e19f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E508:1BB36A:1482D93:1C02239:6AFB72BC |
| html-safe-nonce | 4732f6eaa302ec635d2eac9e5777777d9d2aa56f0c82f36ae7bfe9322ae99a1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTA4OjFCQjM2QToxNDgyRDkzOjFDMDIyMzk6NkFGQjcyQkMiLCJ2aXNpdG9yX2lkIjoiMzU0MTY1NzE5NTQ0OTY0MzcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 108967382994f08e7b837c9dca0c13b62558f1bd02e459409838b3f7843eb436 |
| hovercard-subject-tag | issue:5843489182 |
| 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/448/issue_layout |
| twitter:image | https://opengraph.githubassets.com/594efad0a117672085a514b62280b4764bb249bcadda9277480a0607ac1afd1d/devframes/devframe/issues/448 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/594efad0a117672085a514b62280b4764bb249bcadda9277480a0607ac1afd1d/devframes/devframe/issues/448 |
| og:image:alt | Summary Since v1.2.5 (#445), the default onConfirm of @devframes/hub-ui-onboard (confirmInTerminal() on process.stdin) asks before each panel Install. It never installs without consent, but under N... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antfubot |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| 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 | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width