Dashboard › craft › Craft git.ts: treat tag/branch prefixes…
019f863a-a36f-7b21-83eb-76bb9057e79dIn src/utils/git.ts (findReleaseBranches), release branches are named <prefix>/<version> where <prefix> may itself contain slashes (e.g. release/cli). Fix: compute branch-prefix via lastIndexOf('/')/slice (not segment-count split/join) so the whole prefix is compared as one opaque unit; skip if lastSlash <= 0 (handles both no-slash branches like main and post-remote-strip edge cases, since remote-strip regex ^[^/]+\/ guarantees content exists before the first slash). Fuzzy match uses Levenshtein distance ≤ MAX_EDIT_DISTANCE=3. origin/HEAD -> origin/main entries are filtered upstream in parseGitBranchOutput before reaching this logic, not handled here. Confirmed (July 21 2026 review): the one behavior change vs old segment-count logic — a bare prefix like release no longer matches release/cli/1.2.3 — is the intended fix (prevents a bare-prefix run from claiming another product's branches), not a regression.