fix: use activity timeout for code agent turns
This commit is contained in:
@@ -18,7 +18,7 @@ const blockedCodeAgentUiLabels = new Set([
|
||||
"仍是 fallback",
|
||||
"BLOCKED 凭证缺口"
|
||||
]);
|
||||
const timeoutPattern = /\b(?:timeout|timed out|abort|aborted|超时|请求超过)\b/iu;
|
||||
const timeoutPattern = /\b(?:timeout|timed out|abort|aborted|超时|请求超过|无新事件)\b/iu;
|
||||
|
||||
export function classifyCodeAgentChatReadiness(payload, { realDevLive = false, httpStatus = null } = {}) {
|
||||
const providerBlock = classifyCodeAgentProviderBlock(payload, { httpStatus });
|
||||
@@ -547,7 +547,7 @@ export function classifyCodeAgentBrowserFailure(error, { traceId = null } = {})
|
||||
status: "blocked",
|
||||
blocker: "timeout",
|
||||
category: "timeout",
|
||||
chineseSummary: `超时:Code Agent 请求在配置的长时间边界内没有完成${observedTraceId ? `;traceId=${observedTraceId}` : ""}。`,
|
||||
chineseSummary: `超时:Code Agent 在配置的活动时间边界内没有新事件${observedTraceId ? `;traceId=${observedTraceId}` : ""}。`,
|
||||
reason: message
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user