fix: harden generation task polling fallback

This commit is contained in:
2026-06-08 14:47:27 +08:00
parent 6e271347ae
commit fe5a839b37
5 changed files with 22 additions and 6 deletions
+1
View File
@@ -434,6 +434,7 @@ function normalizeUser(raw: unknown): WebUserSession["user"] | null {
candidate.enterpriseBalance ??
candidate.enterprise_balance,
),
maxConcurrency: toNumber(candidate.maxConcurrency ?? candidate.max_concurrency),
activePackages: toActivePackages(candidate.activePackages ?? candidate.active_packages),
};
}