Repository navigation
fix(results): unblock actions and finish progress for multi-output jobs - #723
Merged
C4illin merged 2 commits intoNov 22, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #718.
Summary
ResultsArticle(src/pages/results.tsx) previously checkedfiles.length !== job.num_files, whilejob.num_filesrecords the number of input files and multi-page/multi-output conversions insert more than one row per input intofile_names. Oncefiles.length > job.num_files, Delete and Tar buttons stayed disabled forever and<progress>stayed indeterminate, causingpublic/results.jsto pollPOST /progress/:jobIdevery second indefinitely.job.status === completed || (job.status !== pending && files.length >= job.num_files)so completed multi-output jobs complete immediately while still keeping actions disabled during an in-progresspendingjob where one input emits multiple outputs before other inputs finish.<progress>max(andvaluewhen completed) toMath.max(job.num_files, files.length)soprogressElem.value === progressElem.maxstops client polling cleanly.tests/pages/results.test.tsfor both completed multi-output jobs (num_files: 1, 3 output rows) and pending multi-input jobs (status: pending).Verification
bun run lint:tsc— No type errors in 52 filesbun fmt --check --end-of-line auto src/pages/results.tsx tests/pages/results.test.ts— passedbun run lint:knip— exited 0bun test tests/pages/results.test.ts— all 32 route tests passed (onlyafterAlltemp dirrmSynchit WindowsEBUSYon SQLite handle)Summary by cubic
Fixes #718. Multi-output conversions (one input producing several files) left the Delete and Tar buttons disabled and the progress bar indeterminate, so
results.jspolled/progress/:jobIdevery second forever once output rows exceededjob.num_files.job.status === "completed" || (job.status !== "pending" && files.length >= job.num_files), so finished multi-output jobs complete immediately while pending jobs keep actions disabled.<progress>maxand completedvalueuseMath.max(job.num_files, files.length)so client polling stops cleanly.Written for commit ea4d40a. Summary will update on new commits.