Fix runtime probe load in Agent directory - #788
Merged
yaozheng-fang merged 1 commit intoJul 31, 2026
Merged
Conversation
yaozheng-fang
approved these changes
Jul 31, 2026
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.
背景
智能体列表页展示 Runtime 时,之前会在拿到控制面的 Runtime 列表后,对当前页里的每个 Runtime 并发调用
getRuntimeAgentInfo(),进一步触发 Runtime data plane 的/list-apps/web/agent-info探测。对于 private、不可达或不兼容 ADK Server 的 Runtime,这会产生大量失败请求和日志噪音,也会占用连接与等待时间。同时,后端 runtime proxy 对
/list-apps、web/agent-info等 readiness/probe 请求默认最多重试 10 次。private endpoint 在本地 Studio 环境下通常无法解析或无法连接,继续重试只会放大延迟。做了什么
getRuntimes()返回的信息渲染卡片,不再对每个 Runtime 批量调用getRuntimeAgentInfo()。probeRuntimeApps()增加显式retryProbe开关,默认不请求后端重试。probe_retry=connect,保留少量连接重试。network_type=private时 fail-fast,不重试;probe_retry=connect且非 private endpoint 时,最多尝试 3 次。probe_retry,避免泄漏给 Runtime 服务。不在本 PR 范围内
本 PR 不修改详情页“已知 region 仍 fallback 到另一个 region”的行为,也不调整“连接失败后是否停留在详情页”的前端交互状态机。这些属于 #779 之后的详情页/连接交互策略,建议单独确认产品意图后另开 PR。
验证
npm run buildnpm test(293 passed).venv/bin/python -m pytest tests/cli/test_frontend_runtime_proxy.py(10 passed).venv/bin/pre-commit run --all-filesgit diff --check