Task summary
Add tests that verify loadEntries() and countEntries() behavior when history.jsonl contains malformed JSON lines mixed with valid entries.
Why this is a good first issue
The parser logic is simple, and this task is a contained test addition with clear expected outcomes.
Suggested files or areas
src/history/store.ts
tests/history-profile.test.mjs or a new history-store focused test file
Acceptance criteria
Extra context
loadEntries() currently catches JSON parse errors and returns only valid entries, but this behavior should be explicitly regression-tested.
Task summary
Add tests that verify
loadEntries()andcountEntries()behavior whenhistory.jsonlcontains malformed JSON lines mixed with valid entries.Why this is a good first issue
The parser logic is simple, and this task is a contained test addition with clear expected outcomes.
Suggested files or areas
src/history/store.tstests/history-profile.test.mjsor a new history-store focused test fileAcceptance criteria
loadEntries()while valid lines are returned.countEntries()with malformed lines.Extra context
loadEntries()currently catches JSON parse errors and returns only valid entries, but this behavior should be explicitly regression-tested.