Files
ruflo/v3/@claude-flow/cli/src
ruv acb5705b70 fix(init): #2450 detect bare \claude-flow hooks statusline\ form in migration
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>
2026-06-23 12:08:25 -04:00
..
2026-01-04 23:50:45 +00:00
2026-01-05 19:40:01 +00:00
2026-01-07 04:36:20 +00:00
2026-01-14 18:48:53 +00:00