Skip to content

fix(studio): 支持 GetRuntime 隐藏场景下的 Runtime 连接 - #966

Open
zyn080302 wants to merge 1 commit into
volcengine:mainfrom
zyn080302:fix/studio-runtime-connection-fallback
Open

fix(studio): 支持 GetRuntime 隐藏场景下的 Runtime 连接#966
zyn080302 wants to merge 1 commit into
volcengine:mainfrom
zyn080302:fix/studio-runtime-connection-fallback

Conversation

@zyn080302

@zyn080302 zyn080302 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

背景

VeFaaS 服务角色可能可以通过 ListRuntimes 看到已授权的 Runtime,但 GetRuntime 会以 InvalidAgentKitRuntime.NotFound 隐藏同一资源,导致 Studio 的 Runtime Proxy、Tool Channel 和 Route Channel 无法建立连接。

改动

  • 仅当 GetRuntime 明确返回 NotFound 时,在同地域分页调用 ListRuntimes,并按 Runtime ID 精确匹配。
  • 使用 List 条目后重新执行现有 ownership 校验;详情、更新、删除等管理路径仍严格依赖 GetRuntime
  • 同时识别 InvalidResource.NotFoundInvalidAgentKitRuntime.NotFound
  • Runtime Proxy 对真实缺失返回稳定的 runtime_not_found,其他查询失败返回 runtime_lookup_failed,不再向浏览器透传上游异常原文。

验证

  • pytest -q tests/cli/test_frontend_runtime_proxy.py tests/cli/test_studio_rbac.py:131 passed
  • scoped pre-commit:Ruff check、Ruff format、hardcoded-secret scan 全部通过
  • git diff --check 通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant