`devproxy --detach` blocks callers that capture its output
維護者通常 1 天內回覆
評估
這個 Issue 還沒有評估資料。
描述
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".
- 主要語言
- C#
- 星號
- 841
- 分支
- 90
- 平均合併
- 2 天 10 小時
- 30 天內合併 PR
- 63
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
dotnet/dev-proxy 的其他 Issue
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" category可能已有人在做 @waldekmastykarz 於 3 天前認領。 未關閉bug work in progress
dotnet/dev-proxy#2097 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Add `devproxy cert export` to write the root certificate to a file可能已有人在做 @waldekmastykarz 於 3 天前認領。 未關閉work in progress
dotnet/dev-proxy#2085 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trust可能已有人在做 @waldekmastykarz 於 3 天前認領。 未關閉documentation work in progress
dotnet/dev-proxy#2084 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Reference the API-inventory preset from the CI/CD and Record docs可能已有人在做 @waldekmastykarz 於 3 天前認領。 未關閉documentation work in progress
dotnet/dev-proxy#2083 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Document the shutdown contract for `POST /proxy/stopProxy`可能已有人在做 @waldekmastykarz 於 3 天前認領。 未關閉documentation work in progress
dotnet/dev-proxy#2081 · 已指派 1 人 ·
維護者通常 1 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
dotnet/wpf#12108 · 3 個 reaction ·
維護者通常 1 天內回覆
-
:watch: Not Triaged dotnet/svc
難度 1/5 1 小時以內 新手友好度 78/100
維護者通常 1 天內回覆
-
area:build type:chore
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
csharp good first issue
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
python triage
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/semantic-kernel#14753 ·
維護者通常 5 天內回覆