Document the shutdown contract for `POST /proxy/stopProxy`
Mantenedores costumam responder em até 1 dia
@waldekmastykarz já está trabalhando nisso.
Desde 5/11/2026.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Problem
The Proxy API page says only "Gracefully shuts down Dev Proxy" and returns 202 Accepted. It doesn't say:
- whether recording is stopped and reports are written before exit,
- that system proxy and certificate changes are reverted,
- how long shutdown typically takes and what exit code to expect,
- how a script knows Dev Proxy has exited. The CI/CD overview suggests grepping the log for
DONE, but that's not linked from here.
Without this, every agent-written script added a 15–30 s wait and a kill fallback. Killing the process skips cleanup.
Proposal
Under POST /proxy/stopproxy, document what happens on shutdown and in what order, plus the recommended way to wait for exit. Examples: wait on the PID returned by --detach, poll devproxy status --pid <pid>, or check the log for DONE. Note that the API is no longer reachable once shutdown starts.
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á 3 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á 3 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á 3 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á 3 dias. Abertadocumentation work in progress
dotnet/dev-proxy#2083 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
`devproxy --detach` blocks callers that capture its outputTalvez já em andamento @waldekmastykarz assumiu há 3 dias. Abertawork in progress
dotnet/dev-proxy#2080 · 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 82/100
Mantenedores costumam responder em até 1 dia
-
A: Art Beginner Friendly P3: Standard T: Bugfix
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
space-wizards/space-station-14#46728 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
juandresrodca/AdminForge#54 ·