Commit 7f797cd
committed
fix: resolve failing realtime session tests
- Fix voice config precedence: session config voice now overrides agent default voice
- Fix updateSessionConfig test expectations: add agent updates to trigger updateSessionConfig calls
- Tests now properly trigger updateSessionConfig by calling updateAgent()
- Preserves session config voice setting instead of always using agent default
Fixes 4 failing tests:
- includes tools in session config when session config is provided
- preserves tools when updateSessionConfig is called
- does not include tools field when no tools are provided
- reproduces the original issue - tools work with config provided1 parent 98df59d commit 7f797cd
File tree
2 files changed
+26
-1
lines changed- packages/agents-realtime
- src
- test
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
469 | 477 | | |
470 | 478 | | |
471 | 479 | | |
| |||
491 | 499 | | |
492 | 500 | | |
493 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
494 | 510 | | |
495 | 511 | | |
496 | 512 | | |
| |||
522 | 538 | | |
523 | 539 | | |
524 | 540 | | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
525 | 549 | | |
526 | 550 | | |
527 | 551 | | |
| |||
0 commit comments