fix(workbench): seal terminal turn timing and diagnostics

This commit is contained in:
lyon
2026-06-22 05:19:34 +08:00
parent 643732bbcf
commit ef32a1e87e
4 changed files with 71 additions and 17 deletions
+2 -2
View File
@@ -235,8 +235,8 @@ function isInternalRoute(pathname) {
function proxyFailurePayload({ timedOut, timeoutMs, upstreamUrl, edgeTraceId }) {
const code = timedOut ? "proxy_timeout" : "upstream_unavailable";
const userMessage = timedOut
? `Code Agent 代理等待上游超过 ${timeoutMs}ms;输入已保留,可稍后重试。`
: "Code Agent 代理暂时无法连接上游;输入已保留,可稍后重试。";
? `Workbench 后端请求超过 ${timeoutMs}ms 未返回;请求已保留,可稍后重试。`
: "Workbench 后端暂时不可用;请求已保留,可稍后重试。";
return {
status: "failed",
error: {