Commit 8012c06
Carsten
fix(05.1-01): GREEN — session.type='realtime' + error-event handler in sideband.ts (defect qwibitai#6 L1 + Pitfall 2)
Layer-1 fix: add type:'realtime' discriminator to session.update payload at
sideband.ts:619. OpenAI Realtime GA 2026 requires this field on every session.update.
Placed FIRST in the object literal so extraSession spread can still override
if a future caller explicitly needs a 'transcription' session (no production
caller currently does). See 05.1-RESEARCH.md §2.4 + §6.1.
Observability (Pitfall 2): add explicit 'error' case to the WS onmessage
handler. Logs event='session_update_rejected' at ERROR level with code,
message, param, error_type, openai_event_id. This closes the observability
gap that let defect qwibitai#6 remain invisible during Plan 05-03 Task 5 live calls.
Explicit return after log matches existing handler conventions.
All Wave 3 prior work preserved (amd-classifier.ts, persona.ts, pre-greet.ts,
cost-farewell path — unchanged). Full voice-bridge suite: 365 passed /
4 skipped. Sideband tests: 28/28 pass. TypeScript strict build clean.
Closes defect qwibitai#6 Layer 1 (persona-swap silent failure). Layer 2 (synthetic
user-directive injection in webhook.ts onHuman) follows in Task 3.1 parent 88df156 commit 8012c06
1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
529 | 557 | | |
530 | 558 | | |
531 | 559 | | |
| |||
616 | 644 | | |
617 | 645 | | |
618 | 646 | | |
619 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
620 | 655 | | |
621 | 656 | | |
622 | 657 | | |
| |||
0 commit comments