Commit History
-
fix: Handle None values in _create_progress_html to prevent TypeError (#3)
Kyosuke IchikawaUnverified signatureFixed TypeError: '>' not supported between instances of 'NoneType' and 'int' that occurred when estimated_total_parts was None during session restoration. Changes: - Updated _create_progress_html to accept Optional[int] for parameters - Added null safety checks converting None to 0 before arithmetic operations - Fixed all usages of current_part and total_parts in time calculations - Added comprehensive unit tests to verify None handling works correctlyd884829