706640ace3
The non-interactive-env hook hardcoded shellType as 'unix', causing 'export' syntax to be used on Windows PowerShell where it doesn't work. This caused sub-agent infinite loops on Windows as git commands would fail with 'export: The term export is not recognized' and retry forever. Fix: use the existing detectShellType() function which correctly detects PowerShell (via PSModulePath), csh, cmd (win32 fallback), and unix shells. Updated tests to verify platform-aware shell syntax selection. Closes #3000