mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
The #2448 migration in `executor.ts` only rewrote settings.json entries that ran the statusline via `npx @claude-flow/cli@latest hooks statusline`. Users on v3.13.3 reported (#2450) that their settings still contain the older bare-command form: "claude-flow hooks statusline 2>/dev/null || node .claude/helpers/statusline.cjs ..." That form was not matched by BROKEN_STATUSLINE_RE so the migration left it in place. The bare command cold-loads the ONNX embedding model on every fire (~1s), Claude Code's statusLine refresh times out, and the status bar never renders. Broadened the regex to catch `(npx [flags])? [@]claude-flow[/cli][@<tag>]? hooks statusline` — covers npx + tag, npx + prefer-offline, and the bare form (with or without `||` fallback chains). Migration now rewrites all forms to the local-helper NEW_STATUSLINE_CMD which runs in <20ms. Regex test: catches all 5 broken forms, correctly skips the new `node -e "..."` replacement and the bare local-helper invocation. Co-Authored-By: RuFlo <ruv@ruv.net>