Sessions with no timestamps render under an empty date heading

Open
#5 1 comment 0 reactions 0 assignees View on GitHub

@kragent66-glitch is already working on this.

Since Dec 4, 2026.

  • #7 by @kragent66-glitch — open

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, node.js
Domain
cli

Research direction

Read src/journal.js and the existing tests in test/journal.test.js; the issue identifies the date grouping logic and asks for a fixture session without timestamps. Check how journal.md and journal.html render grouped sessions, then run npm test. Done when undated sessions appear under a clear label and sort last in both outputs, with a regression test.

Written by the indexing model from the issue text.

Description

bug good first issue

Found while running the CLI over a real corpus (84 sessions, public test data from daaain/claude-code-log).

One session had no usable timestamp. In journal.md it is grouped under a heading with an empty date:

##  - ~$0.00 list-price est. (partial: some unknown)

The cause is in src/journal.js: date is String(session.start || '').slice(0, 10), so a missing start becomes an empty string and that string is used as the day key.

Wanted: render those sessions under a clear label such as Undated, and keep them last in the list. Add a test in test/journal.test.js with a fixture session that has no timestamps. journal.html should get the same treatment.

Good first issue: small, one function, existing test style to copy. Run npm test before and after.

Dominant language
JavaScript
Stars
0
Forks
2
Avg merge
1m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hchc00787/coding-agent-journal

All issues in hchc00787/coding-agent-journal

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.