---
id: BACK-22
title: 'CLI: Prevent double dash in task filenames'
status: Done
assignee: []
created_date: '2025-06-09'
updated_date: '2025-06-09'
labels: []
dependencies: []
---

## Description

Ensure generated task filenames never contain consecutive dashes

## Acceptance Criteria
- [x] Filenames generated by the CLI do not contain consecutive dashes
- [x] Task committed to the repository

## Implementation Notes
- Updated `sanitizeFilename` utility to collapse repeated dashes and trim leading
  or trailing dashes.
- Added regression test ensuring filenames created for tasks never contain
  consecutive dashes.
