Description
When a user turns off captions (CC) mid-meeting and turns them back on, TranscripTonic stops capturing any subsequent transcript. The downloaded transcript only contains content up to the moment captions were turned off — everything spoken after re-enabling CC is lost.
Steps to reproduce
- Start a Google Meet call with TranscripTonic active.
- With CC on, have a few sentences captioned and captured.
- Click the CC icon to turn captions off.
- Wait a few seconds, then click CC again to turn captions back on.
- Speak some more sentences. They appear in Meet captions normally.
- End the meeting and download the transcript.
Expected: transcript includes content from before AND after the CC toggle.
Actual: transcript only includes content up to the moment captions were turned off.
Environment
- Extension version: 3.3.4
- Browser: Chrome (current stable)
- Meeting software: Google Meet (post Jul/Aug 2024 UI)
Root cause
The transcript MutationObserver is attached once to div[role="region"][tabindex="0"] (extension/content-google-meet.js:191). The inline comment assumes this element persists regardless of CC on/off, but in the current Meet DOM the region node is detached/replaced when the user toggles captions. The observer is then left on the orphan node and never receives mutations from the newly-rendered region, so captures stop until the page is reloaded.
Proposed fix
Periodically check whether the observed region node is still connected and still equals the current selector result; if not, flush the in-flight buffer and re-attach the observer. Follow-up PR incoming.
Description
When a user turns off captions (CC) mid-meeting and turns them back on, TranscripTonic stops capturing any subsequent transcript. The downloaded transcript only contains content up to the moment captions were turned off — everything spoken after re-enabling CC is lost.
Steps to reproduce
Expected: transcript includes content from before AND after the CC toggle.
Actual: transcript only includes content up to the moment captions were turned off.
Environment
Root cause
The transcript
MutationObserveris attached once todiv[role="region"][tabindex="0"](extension/content-google-meet.js:191). The inline comment assumes this element persists regardless of CC on/off, but in the current Meet DOM the region node is detached/replaced when the user toggles captions. The observer is then left on the orphan node and never receives mutations from the newly-rendered region, so captures stop until the page is reloaded.Proposed fix
Periodically check whether the observed region node is still connected and still equals the current selector result; if not, flush the in-flight buffer and re-attach the observer. Follow-up PR incoming.