[Bug] ar-supervisor hangs on exit when project root contains spaces
@harman-2167 is already working on this.
Since Oct 15, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 2.8k
- Forks
- 250
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EvoMap/AutoResearch
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
EvoMap/AutoResearch#15 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
EvoMap/AutoResearch#13 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
EvoMap/AutoResearch#11 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
EvoMap/AutoResearch#10 ·
All issues in EvoMap/AutoResearch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
NL-BioImaging/biomero#136 ·
Maintainers usually reply within 1 day
-
Grayscale PNGs with partial transparency can turn gray pixels whitePossibly taken @ktz03 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
eclipse-score/tools#82 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day