mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
* fix(mirror): reject empty commit uploads * refactor(mirror): unify totalParts validation into shared predicate Consolidate the duplicated positive-integer check and error message into isValidTotalParts/TOTAL_PARTS_INVALID_MESSAGE, reused by the commit route and extractPartsToStaging. Validate totalParts before the session lookup to match the parts route, and update the delete-session test to use a valid totalParts so it unambiguously covers the 404 path. --------- Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>