fix(react-native): deliver Whisper transcripts after stop
Closed
ST
2mo ago+127+127+012345678901234567890123456789-3-3-0123456789
Stopping the React Native Whisper transcriber discards the final buffered transcript and any decode still running. Queue decodes in audio order and deliver results for audio accepted before stop, while continuing to ignore later audio and repeated stop calls.
Related to #13011. This fixes the React Native adapter only; the shared cross-language lifecycle discussion remains open.
Validation:
- Five hardware-independent tests exercise the exported transcriber with synthetic PCM and injected runners. The tail and in-flight tests fail on unchanged upstream and pass with the fix. A delayed first batch reproduces the ordering issue before serialization and passes after it. The queue also continues after a failed earlier batch.
- The tests run through the shared local/CI check manifest using the existing Bun runtime.
- No physical device or live model was used.
Failure-Class: none
Product invariants affected: none.