Description
extractRunNumber in src/commands/list.ts:18-20 always returns -1:
export function extractRunNumber(_filename: string): number {
return -1; // Assigned by loadAllRuns based on sort position
}
Run numbers are actually assigned by loadAllRuns() using array index (buildRunSummary(i + 1, r.result)), making this function dead code. It's only imported in list.test.ts.
Suggested fix
Remove extractRunNumber entirely and update its tests. If filename-based extraction is needed in the future, implement it properly at that time.
Description
extractRunNumberinsrc/commands/list.ts:18-20always returns-1:Run numbers are actually assigned by
loadAllRuns()using array index (buildRunSummary(i + 1, r.result)), making this function dead code. It's only imported inlist.test.ts.Suggested fix
Remove
extractRunNumberentirely and update its tests. If filename-based extraction is needed in the future, implement it properly at that time.