[rush] rush-cli-client/rushd: daemon-path error UX gaps (leaked engine chatter, transport jargon, RUSH_DAEMON_* typo blocks --no-daemon, non-Git workspaces hard-fail instead of falling back, ...)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- git, nodejs, typescript
- Lĩnh vực
- cli, developer-experience, tooling
Hướng nghiên cứu
Start by reading the issue's detailed list of problems and the referenced files: libraries/rush-daemon/src/EngineTerminalProvider.ts, apps/rush-cli-client/src/launchClient.ts, and DaemonConfiguration.ts. Reproduce one error, like the leaked engine chatter, by running a command with a non-existent project. Look at how errors are formatted and where they are wrapped. 'Done' means each listed UX gap is fixed, and daemon errors match native Rush's clarity.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
A bundle of daemon-path error-UX problems. Each one is small, but together they make daemon errors noticeably worse than native errors for both humans and AI agents. The items below were reproduced with rush-client from main @ 60007c9a8c and RUSH_DAEMON=1, and items 1, 3, 4 and 7 were independently confirmed.
- Engine chatter leaks into rejections.
rush-client build -t nosuchprojprintsrush-client: Daemon rejected the request (invalidRequest): Incremental strategy: cache restoration\n\nThe project name "nosuchproj" passed to "--to" does not exist in rush.json.\n\nAn error occurred.Native Rush prints only the middle sentence. Cause:EngineTerminalProvider.describeError(libraries/rush-daemon/src/EngineTerminalProvider.ts:19-24) prepends every buffered info/verbose line (used atProductionDaemonRequestResolver.ts:111, 162, 190). Include only warning and error severities. - Transport jargon prefix. Every daemon-side configuration or validation error is wrapped as
Daemon rejected the request (routingFailed|invalidRequest): ...(apps/rush-cli-client/src/launchClient.ts:215-216). For user errors, print the native text and keep the code for--verbose. - A typo in a
RUSH_DAEMON_*variable disables the escape hatch.RUSH_DAEMON_FOO=1 rush-client build --no-daemonand... rush-client --helpboth exit 1 withUnknown daemon environment variable "RUSH_DAEMON_FOO"., becauseresolveDaemonConfigurationruns before routing (launchClient.ts:43-46).--no-daemon,--helpand never-daemonize commands should not require a valid daemon configuration. - Misleading numeric error.
RUSH_DAEMON_QUEUE_TIMEOUT_SECONDS=-1reportsmust be a decimal number., because the regex rejects the sign before the range check (DaemonConfiguration.ts:131-132). - rush.json
daemonblock errors have no location.{"enabled":"yes"}reportsdaemon.enabled must be a boolean.Native schema errors include the file path and JSON pointer. - Duplicated error on fallback. A command-line.json syntax error prints the full error in the fallback notice, and then native Rush prints the identical error again (
launchClient.ts:217-218). rush-client daemon --helpanddaemon logs --helpexit 1. Help should exit 0. There's also a punctuation glitch in the fallback message:...require --no-daemon.; using in-process Rush.- Non-Git workspaces hard-fail instead of falling back. In a workspace that is not a Git checkout (tarball,
git archiveexport, a Docker context without.git), withRUSH_BUILD_CACHE_ENABLED=0, nativerush buildsucceeds, butrush-client buildexits 1 withroutingFailed ... The daemon engine requires a Git-backed workspace inputs snapshot.(right after "Rush will proceed without incremental build support"). Throw a typed error from rush-lib (PhasedScriptAction.ts:820-823) and map it to anunsupportedrejection so that the client falls back in-process. (Item 8 was reproduced by one analysis run, and a prototype of the fix worked.)
Repro steps
See each item's command above. All of them were run in a synthetic workspace.
Expected result: Errors on the daemon path match native Rush's clarity and exit codes.
Actual result: As listed.
Details
This was found during an automated performance/behavior analysis of rush-client/rushd on Linux.
Standard questions
| Question | Answer |
|---|---|
@microsoft/rush globally installed version? |
built from main @ 60007c9a8c (5.179.0) |
rushVersion from rush.json? |
5.179.0 |
pnpmVersion, npmVersion, or yarnVersion from rush.json? |
[email protected] |
(if pnpm) useWorkspaces from pnpm-config.json? |
true |
| Operating system? | Linux (WSL2 Ubuntu 24.04) |
| Would you consider contributing a PR? | Yes |
Node.js version (node -v)? |
22.23.2 |
- Ngôn ngữ chính
- TypeScript
- Star
- 6.5k
- Fork
- 710
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/rushstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[rush] Upgrade the pnpm-sync-lib dependency to 0.3.5.Có thể đã có người làm @martinnaj đã nhận 19 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/rushstack#5971 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/rushstack
Issue tương tự
-
Add: Tequila Music TV RO SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
iptv-org/iptv#55821 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/wterm#246 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nearform/lastlight#452 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(console): include PARTITIONED BY in generated table DDLCó thể đã có người làm @aubdiy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/polaris-tools#291 ·
Maintainer thường phản hồi trong vòng 6 ngày