Commit c318de6
committed
Fix dictation startup races and migrate tap defaults
What changed:
- treat an in-flight dictation start as stoppable so a rapid second tap queues a stop instead of being ignored
- preserve the requested stop mode through the before-start stop path and clear pending mode state on cancel/cleanup
- migrate dictation toggle and auto-send preferences to v2 storage keys so devices with legacy values pick up the new tap-to-toggle defaults
- extend manual verification steps with rapid-tap and touch-viewport coverage
Why:
- PR #48 received review feedback about startup race conditions in useDictation
- phones with previously saved dictation settings could stay on hold-to-talk even after switching the product default to tap-to-toggle
Impact:
- desktop and mobile dictation now follow the same tap-to-toggle flow by default
- rapid double taps during recorder startup stop and transcribe instead of leaving recording running
Validation:
- pnpm run build
- Playwright verification on 375x812 and 768x1024, including legacy-pref mobile load and rapid second-tap startup handling1 parent ce3ee23 commit c318de6
3 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1003 | 1003 | | |
1004 | 1004 | | |
1005 | 1005 | | |
1006 | | - | |
1007 | | - | |
| 1006 | + | |
| 1007 | + | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
175 | 178 | | |
176 | 179 | | |
177 | 180 | | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
274 | 279 | | |
275 | 280 | | |
276 | 281 | | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
| |||
291 | 297 | | |
292 | 298 | | |
293 | 299 | | |
294 | | - | |
| 300 | + | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2242 | 2242 | | |
2243 | 2243 | | |
2244 | 2244 | | |
2245 | | - | |
| 2245 | + | |
2246 | 2246 | | |
2247 | | - | |
2248 | | - | |
2249 | | - | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2250 | 2252 | | |
2251 | 2253 | | |
2252 | 2254 | | |
| 2255 | + | |
2253 | 2256 | | |
2254 | 2257 | | |
2255 | 2258 | | |
| 2259 | + | |
2256 | 2260 | | |
2257 | 2261 | | |
2258 | 2262 | | |
0 commit comments