Commit 10807bd
fix(core): commit PttTrayState + PttTranslated plumbing
These were referenced by already-committed voice_ptt.rs / voice.rs code
but the enum + trait method + event variant lived only in local working
tree, breaking every CI build for v2.0.0-beta.2.
- platform.rs: add PttTrayState {Idle, Recording, Processing, NoteMode}
and default Platform::set_ptt_tray_state() trait method.
- voice_otoji.rs: parse ptt_translated events + forward to
PttSession::on_ptt_translated. Enable translation args
(--ptt-translate-to / --ptt-tts-source) when the CLX_TRANSLATE_*
env vars are set. Wire polish=openai (→ Cloudflare) + tts=gemini.
- voice_ptt.rs: instrumentation logs in start_spinner and
replace_displayed to diagnose the reported "spinner slows with
long utterances" bug.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 31c5e72 commit 10807bd
3 files changed
Lines changed: 93 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
141 | 170 | | |
142 | 171 | | |
143 | 172 | | |
| |||
362 | 391 | | |
363 | 392 | | |
364 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
365 | 399 | | |
366 | 400 | | |
367 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
| |||
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
| 432 | + | |
429 | 433 | | |
| 434 | + | |
430 | 435 | | |
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| 439 | + | |
434 | 440 | | |
435 | 441 | | |
436 | 442 | | |
437 | 443 | | |
438 | 444 | | |
439 | 445 | | |
440 | 446 | | |
| 447 | + | |
441 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
442 | 462 | | |
443 | 463 | | |
444 | 464 | | |
| |||
504 | 524 | | |
505 | 525 | | |
506 | 526 | | |
| 527 | + | |
507 | 528 | | |
| 529 | + | |
508 | 530 | | |
509 | 531 | | |
510 | 532 | | |
| |||
513 | 535 | | |
514 | 536 | | |
515 | 537 | | |
| 538 | + | |
516 | 539 | | |
| 540 | + | |
517 | 541 | | |
518 | 542 | | |
519 | 543 | | |
520 | 544 | | |
521 | 545 | | |
522 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
523 | 557 | | |
524 | 558 | | |
525 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| |||
191 | 200 | | |
192 | 201 | | |
193 | 202 | | |
| 203 | + | |
| 204 | + | |
194 | 205 | | |
195 | 206 | | |
196 | 207 | | |
| |||
0 commit comments