fix(studio): 支持 GetRuntime 隐藏场景下的 Runtime 连接 - #966
Open
zyn080302 wants to merge 1 commit into
Open
Conversation
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.
背景
VeFaaS 服务角色可能可以通过
ListRuntimes看到已授权的 Runtime,但GetRuntime会以InvalidAgentKitRuntime.NotFound隐藏同一资源,导致 Studio 的 Runtime Proxy、Tool Channel 和 Route Channel 无法建立连接。改动
GetRuntime明确返回 NotFound 时,在同地域分页调用ListRuntimes,并按 Runtime ID 精确匹配。GetRuntime。InvalidResource.NotFound与InvalidAgentKitRuntime.NotFound。runtime_not_found,其他查询失败返回runtime_lookup_failed,不再向浏览器透传上游异常原文。验证
pytest -q tests/cli/test_frontend_runtime_proxy.py tests/cli/test_studio_rbac.py:131 passedgit diff --check通过