Strips the leading "<host?>-<node>-<pid>-" prefix from each pane title
and groups panes whose remainders are identical. Intended to surface
cases where the same queue row has been claimed by two workers (e.g. a
stale RUNNING reclaim that was actually live).
tmuxFindDuplicates(panes = NULL, runPattern = "outputs-")Optional data.frame as returned by tmuxListPanes(). If
NULL (the default) one is fetched internally.
Optional regex; only panes whose stripped title matches
it are considered. Default "outputs-" matches this codebase's usual
runName prefix; pass NULL to disable the filter.
data.frame with the same columns as tmuxListPanes() plus
run_id (the stripped runName used for grouping) and group (integer
identifying each duplicate set). Rows are ordered by group then
pane_ref. Empty data.frame (with these columns) when no duplicates.
The prefix strip matches 1 or 2 non-dash chunks followed by a 6+-digit
PID followed by a dash – covering both <host>-<node>-<pid>-<runName>
and <node>-<pid>-<runName> title formats. Old-style titles lacking
this prefix are kept verbatim; a title is considered a duplicate only if
its stripped form appears on 2+ panes, so two differently-formatted titles
with the same tail still collapse correctly.