Skip to content

Valid transcripts disappear when a JSONL line contains null or scalar JSON - #24

Closed
dipeshbabu wants to merge 1 commit into
fix/ci-bundle-smokefrom
fix/jsonl-records
Closed

dipeshbabu wants to merge 1 commit into
fix/ci-bundle-smokefrom
fix/jsonl-records

Conversation

@dipeshbabu

@dipeshbabu dipeshbabu commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Upstream replacement: subconscious-systems#20

This PR was created in the fork in error. The fix and its issue are now submitted to upstream.

parseLines accepts any JSON value. Adapters then access record fields, so null or other non-record values can cause discovery to discard an entire otherwise valid session. Out-of-range numeric timestamps also throw during upload.

Ignore non-object JSON records and invalid numeric dates while retaining valid transcript records. Tests discover and read a transcript containing scalars, arrays, null, and an interrupted final line.

Validation: frozen-lockfile dependencies, typecheck, full tests, npm bundle build, and bundled CLI version/help smoke tests. The Ubuntu/Windows Node 20/22 branch CI must pass before this PR is created.

This PR is based on the CI foundation branch so its diff contains only this bug fix; merge the CI foundation PR first.

Closes #11.

All branch CI checks passed on 616beb6: https://github.com/dipeshbabu/vibi-cli/actions/runs/37263149391

@dipeshbabu dipeshbabu closed this Oct 5, 2026
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.

1 participant