Document the shutdown contract for `POST /proxy/stopProxy`
Les mainteneurs répondent en général sous 1 jour
@waldekmastykarz y travaille déjà.
Depuis le 5/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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".
- Langage dominant
- C#
- Étoiles
- 841
- Forks
- 90
- Merge moyen
- 2 j 10 h
- PR mergées (30 j)
- 63
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryPeut-être pris @waldekmastykarz l’a pris il y a 2 jours. Ouvertebug work in progress
dotnet/dev-proxy#2097 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Add `devproxy cert export` to write the root certificate to a filePeut-être pris @waldekmastykarz l’a pris il y a 2 jours. Ouvertework in progress
dotnet/dev-proxy#2085 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trustPeut-être pris @waldekmastykarz l’a pris il y a 2 jours. Ouvertedocumentation work in progress
dotnet/dev-proxy#2084 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Reference the API-inventory preset from the CI/CD and Record docsPeut-être pris @waldekmastykarz l’a pris il y a 2 jours. Ouvertedocumentation work in progress
dotnet/dev-proxy#2083 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
`devproxy --detach` blocks callers that capture its outputPeut-être pris @waldekmastykarz l’a pris il y a 2 jours. Ouvertework in progress
dotnet/dev-proxy#2080 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de dotnet/dev-proxy
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Facepunch/sbox-public#12305 ·
Les mainteneurs répondent en général sous 5 jours
-
分享 JVC DVD+RW 4.7G (铼德代工) 实测标定预设Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
flyingpie/windows-terminal-quake#419 ·
Les mainteneurs répondent en général sous 1 jour
-
Show the per-model weekly limitOuverteenhancement help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
a-corriger documentation
Difficulté 1/5 1-3 heures Accessibilité débutants 83/100
christian-raj/S-Aloha#272 ·