mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
Root cause of a real user report (statusline showing only 2 lines -- missing the promo/insight row -- and the intelligence percentage stuck at 0%, on Windows). getStatuslineData()'s CLI delegation command appended `2>/dev/null` to every candidate, but the execSync call already sets stdio: ['pipe','pipe','pipe'], which captures/discards stderr at the Node level regardless of shell -- the redirect was redundant on POSIX and actively broke every candidate on Windows, since cmd.exe (execSync's default shell there) doesn't understand /dev/null. Every delegation attempt failed, so every render silently fell through to buildLocalFallback() (hardcoded 0% intelligence), and since the promo memo cache is only ever seeded by a SUCCESSFUL delegation, it could never populate on Windows either -- so the row stayed empty release over release. Pre-existing since the #2337 delegation-caching fix (2026-06-10), not introduced this session -- fixed now after a real Windows user hit it on 3.26.0. Left getGitInfo()'s separate `sh -c` usage (git username/branch in the header) untouched -- a related but distinct Windows gap (no `sh` on native Windows) that needs its own fix, not bundled in here to keep this change minimal and reviewable. Added a regression test pinning that the delegation command lines never carry `2>/dev/null` again. All 157 relevant tests pass.