- Add validation to ensure cols/rows are finite numbers before resizing
- Provide fallback values when container dimensions are not ready
- Ensure measureCharacterWidth returns valid positive numbers
- Update terminal test to reflect actual calculated columns behavior
- This fixes "This API only accepts integers" errors in frontend tests