|
On Windows, python/python3/py can be packaged launcher aliases (Microsoft
Store Python, Python Install Manager). Started through the alias, the
interpreter answers `-c` but has a different view of %APPDATA% and cannot
see a plugin staged there. sg-python.sh picked it, CPython failed with
"can't open file ... [Errno 2]" and exit code 2, and exit 2 from the
asyncRewake Stop hook was delivered to the model as review findings. The
model's reply ran the Stop hook again, so the session looped without ever
reviewing anything (#6251, #5781).
The launcher's probe now also checks that the interpreter can read the
hook script. When no name on PATH qualifies, it tries the other
python3/python entries on PATH by full path and the real executable each
alias reports. If nothing can read the script it says so and exits 1, so
a launch failure is never reported as findings.
|