Skip to content

fix(band): keep a task name with a carriage return in one ledger row - #1399

Open
daviorlando wants to merge 1 commit into
DietrichGebert:mainfrom
daviorlando:fix/band-crlf-task-name
Open

daviorlando wants to merge 1 commit into
DietrichGebert:mainfrom
daviorlando:fix/band-crlf-task-name

Conversation

@daviorlando

Copy link
Copy Markdown
  • The task name is taken from the first line split on \r?\n.
  • csvField quotes a field that contains \r, so no other source of names can split a row either.

Added a test to tests/band.test.tsx for a name ending in \r. I can't run that file outside Claude Code (it imports claude-code/testing), so I ran the same check against the real metrics.ts/board.ts in Node 24: two rows before the change, one after. npm test, check-rule-copies and check-versions pass. The only failure is the pandas CSV case, which fails because pandas isn't installed locally, same as on main.

Fixes #1398

🤖 Generated with Claude Code

A prompt typed with CRLF line endings kept a trailing \r in the task name. csvField
did not quote \r but parseCsv ends a row on it, so the row split in two: the board
showed a broken extra task and resume() lost the token and time columns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A task name with a CRLF prompt splits its ledger row in two

1 participant