Repository navigation
v0.12.1 — dictation and voices on Paseo 0.15
Dictation could stop working on Paseo 0.15 after the plugin started, with «the plugin's recogniser is not running», and the voices could fail with it. 0.12.0 made it happen almost every time.
What changed
- The archive is read and written synchronously while Electron's asar support is off. Paseo 0.15 sends a plugin's
fetchthrough undici from its own archive, and undici loads its HTTP parser from there on the first response. The plugin held the switch off across anawaitwhile it read Paseo's archive, so a response that arrived in that gap found no parser — and every request of the plugin's process failed from then on: the recogniser's readiness check never passed, and requests to Google went the same way. 0.12.0's check of the desktop bundle took longer, which made the gap easy to hit. Now nothing else runs while the switch is off, as was already the case for the one synchronous call.
Tests
- 195 unit tests, one new: a timer watching the switch while the archive is read and written must never see it off, and it must be left as it was found, after a failed read too. Red on 0.12.0, green here.
- On the real daemon: four starts of 0.12.0 in a row timed out on the recogniser with «Cannot find module '../llhttp/llhttp-wasm.js'» underneath; with this, it answered in two seconds.
After updating: reload the plugin (paseo plugin reload voice). That starts a fresh process, which is what clears it.
Full changelog: v0.12.0...v0.12.1