修复首次会话等待与上游饱和重试

This commit is contained in:
2026-08-12 23:26:19 +08:00
parent b02c3f22e1
commit 08da976634
10 changed files with 506 additions and 14 deletions

View File

@@ -0,0 +1,6 @@
export function isOpencodeUpstreamSaturated(message: string | null | undefined): boolean {
const normalized = message?.trim().toLowerCase() ?? '';
if (!normalized) return false;
return normalized.includes('当前分组上游负载已饱和')
|| (normalized.includes('upstream') && normalized.includes('saturat'));
}