mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:19:31 +08:00
RestrictedSubprocessBackend passes HOME and TMPDIR through to model-run code but not their Windows counterparts. On Windows HOME is normally unset, so code run by the exec tool got no home folder: Path.home() raised "Could not determine home directory", "~" stayed unexpanded (libraries then create a literal "~" folder in the workspace), and tempfile fell back to C:\Windows\Temp. Also keep USERPROFILE, TEMP and TMP. They name folders, not secrets.