[Bug] ar-supervisor hangs on exit when project root contains spaces
@harman-2167 ya está trabajando en esto.
Desde el 15/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
Start in ar-runtime/scripts/ar-supervisor.sh, reading monitor_pids() and reap_monitors() to trace how the project root is recovered and how cleanup waits for the monitor. Reproduce the issue with a root containing whitespace, then add the suggested supervisor cleanup test. Done means the monitor is stopped and reaped, the supervisor exits, and the run manifest is sealed.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
monitor_pids() parses ps -eo pid=,command= output with line.split() and takes the next token after --project-root. A valid project path containing spaces is split into multiple tokens, so the monitor's actual root never matches ABS_PROJ.
On the first run for such a project, reap_monitors() consequently does not signal the monitor. It then waits on MONITOR_PID unconditionally; because that child is still running, the supervisor's EXIT trap blocks indefinitely.
Reproduction
- Run
ar-runtime/scripts/ar-supervisor.shwith a project root such as/tmp/research project. - Let the supervisor start its
ar-gemini-monitor.py --project-root "/tmp/research project"child. - Let the supervisor exit (for example after the retry budget is exhausted).
- Observe that the supervisor remains stuck in
reap_monitors()waiting for the monitor; the monitor continues running.
The parser behavior is reproducible from a typical ps line: after splitting "... --project-root /tmp/research project ...", the value read for --project-root is only /tmp/research, not the original argument.
Expected behavior
The monitor is stopped and reaped, then the supervisor exits and seals the run manifest.
Suggested direction
Avoid recovering argv boundaries from the display-formatted ps command string, or use an encoding/quoting-aware process inspection method. Add a supervisor cleanup test whose project root contains whitespace.
- Lenguaje dominante
- Python
- Estrellas
- 2.8k
- Forks
- 250
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de EvoMap/AutoResearch
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 15/100
EvoMap/AutoResearch#15 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
EvoMap/AutoResearch#13 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
EvoMap/AutoResearch#11 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
EvoMap/AutoResearch#10 ·
Todos los issues de EvoMap/AutoResearch
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
NL-BioImaging/biomero#136 ·
Los mantenedores suelen responder en 1 día
-
Grayscale PNGs with partial transparency can turn gray pixels whitePosiblemente ocupada @ktz03 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Add deterministic regex redaction for IDs, IBANs, and account numbers in summaries & keywordsAbiertoenhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
floorianmb/tidywise#5 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
eclipse-score/tools#82 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día