`devproxy --detach` blocks callers that capture its output
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
On Windows, the agent ran:
devproxy --detach --no-first-run -c ..\devproxy\devproxyrc.json 2>&1 | Out-String
The command never returned: no output after 45 s, and the shell had to be killed. Dev Proxy itself was running. The agent abandoned --detach and wrote its own background-spawn logic.
The daemon is started with RedirectStandardOutput/Error = true (Program.cs). Likely cause: the detached child inherits the caller's pipe handles, so anything that reads the parent's output to EOF waits for the daemon to exit. This affects | Out-String, $(devproxy --detach) in bash, and subprocess or execSync with pipes. Not yet confirmed on macOS or Linux.
Proposal
- Start the daemon with stdio fully detached (null, or the log file) and without inheriting the caller's handles.
- Make sure the parent prints its startup info (PID, URLs, log file) and exits immediately.
- Add an integration test that runs
devproxy --detachthrough a captured pipe with a timeout. The existingProcessSmokeTestscover--detach, but not with captured output.
Found while evaluating how coding agents use Dev Proxy: VS Code + GitHub Copilot Chat with Claude Sonnet 5.5, Dev Proxy 4.0.0 on Windows, 5 runs of the task "add a CI script that starts Dev Proxy in the background, starts and stops recording through the API around npm start, and shuts Dev Proxy down through the API".
- Ngôn ngữ chính
- C#
- Star
- 841
- Fork
- 90
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọ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 dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởbug work in progress
dotnet/dev-proxy#2097 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `devproxy cert export` to write the root certificate to a fileCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởwork in progress
dotnet/dev-proxy#2085 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trustCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởdocumentation work in progress
dotnet/dev-proxy#2084 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reference the API-inventory preset from the CI/CD and Record docsCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởdocumentation work in progress
dotnet/dev-proxy#2083 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Document the shutdown contract for `POST /proxy/stopProxy`Có thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởdocumentation work in progress
dotnet/dev-proxy#2081 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/dev-proxy
Issue tương tự
-
Playground selection bar: comes back after Apply or scrolling while focus is in the Markdown paneĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
sillsdev/SIL.TextEditing#175 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs attention untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3666 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
MicrosoftLearning/eShopOnWeb#466 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
stryker-mutator/stryker-net#3974 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày