Skip to content

fix(api): list and preview JSONL results in the WebUI - #976

Open
saksim wants to merge 1 commit into
NanmiCoder:mainfrom
saksim:codex/upstream-jsonl-preview
Open

fix(api): list and preview JSONL results in the WebUI#976
saksim wants to merge 1 commit into
NanmiCoder:mainfrom
saksim:codex/upstream-jsonl-preview

Conversation

@saksim

@saksim saksim commented Sep 9, 2026

Copy link
Copy Markdown

The default JSONL output is omitted from the data file list and statistics, and cannot be previewed in the WebUI. This change adds JSONL to listing, counts, previews and the file-card preview action.

The reader parses one line at a time, skips blank lines, and retains at most the requested 1–1000 preview records. Counting still scans the complete file. UTF-8 BOM and uppercase extensions are supported; malformed JSON or encoding returns HTTP 400. Existing download support is preserved.

Validation: all 7 new regression cases fail against the base implementation. The full upstream test suite with this patch passes (103 tests). The TypeScript/Vite WebUI build passes. An isolated headless Edge check at 1440×1000 opened Data Management and the JSONL preview, displaying both fixture records and Chinese text with no page runtime exception. Existing /vite.svg 404 and Dialog description warnings remain. Temporary data and the local test server have been cleaned up.

This is an independent, single-issue contribution based on upstream main, with no dependency on the other audit PRs. Fork tracking: saksim#9 and saksim#25.

@saksim
saksim requested a review from NanmiCoder as a code owner September 9, 2026 03:46
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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