`devproxy --detach` blocks callers that capture its output
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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".
- Linguagem predominante
- C#
- Estrelas
- 841
- Forks
- 90
- Merge médio
- 2d 10h
- PRs com merge (30d)
- 63
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertabug work in progress
dotnet/dev-proxy#2097 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Add `devproxy cert export` to write the root certificate to a fileTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertawork in progress
dotnet/dev-proxy#2085 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trustTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2084 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Reference the API-inventory preset from the CI/CD and Record docsTalvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2083 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Document the shutdown contract for `POST /proxy/stopProxy`Talvez já em andamento @waldekmastykarz assumiu há 2 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2081 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de dotnet/dev-proxy
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Facepunch/sbox-public#12305 ·
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
Mantenedores costumam responder em até 1 dia
-
bug keep-fresh
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Flow-Launcher/Flow.Launcher#4744 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
flyingpie/windows-terminal-quake#419 ·
Mantenedores costumam responder em até 1 dia
-
enhancement help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100