perf: Prewarm LiveAvatar browser sessions#16
Open
jiejuncai-ly wants to merge 21 commits into
Open
Conversation
jiejuncai-ly
marked this pull request as ready for review
July 14, 2026 03:47
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author
|
本轮 review 已逐项核对:
验证:129 tests passed,lint passed,production build passed(仅保留已有 ONNX dynamic-require warning)。真实 cloud template 的 |
Author
|
更新:routing 已合入,本 PR 已基于最新 lex-main 恢复并完成重新移植与测试;当前分支是正式候选,不再是撤下状态。 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Claude finished @jiejuncai-ly's task in 5m 13s —— View job Review 结论有条件通过 (说明:本次沙箱环境无 问题及建议
残余风险:未能在本地跑通 142 项前端测试与 production build,建议在 CI 结果( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
在用户点击 Start 之前完成 LiveKit Room、Agent dispatch、
room_audio_input和room_video_input的预热,并让浏览器 Start 复用已建立的 Session,缩短首屏视频与人脸检测等待时间。本 PR 与 lex-voice#226 配套。
Design
1. 服务端 prewarm
POST /api/session/prewarm,使用 Gateway 注入的单 Sandbox secret 做服务端授权。room_audio_input与room_video_input,但不要求浏览器视频首帧已经发布。2. Browser Start
room_video。3. 路径与 Sandbox 兼容
/s/<slug>和 CubeSandbox/proxy/4003/前缀。ui_proxy.py对外监听4003,再转发到监听127.0.0.1:4103的 Next;这是动态 Cube 路径的兼容边界,不应从 Template 移除。4. 超时与可观测性
8s边界。45s;Agent worker readiness 上限为30s,并与 dispatch 共用同一个总 deadline。60s,覆盖前端预算与网络/清理余量。Validation
155 passed。room_video且未出现绿色/紫色噪点。配套 lex-voice 最新 bootstrap/cancellation 修复合入后仍需重跑真实双环境 HIL。Risk and rollout
49999bootstrap health 与4003 -> 4103UI proxy 结构。Merge / deploy order