Merge remote-tracking branch 'upstream/master'

# Conflicts:
#	open-sse/handlers/chatCore.js
#	open-sse/providers/registry/index.js
#	open-sse/services/usage.js
This commit is contained in:
MUH. IQRAM BAHRING committed 2026-08-30 23:23:48 +08:00
commit eaf204b83c
114 files changed
+5587 -2184

No files matched your search

@@ -379,8 +379,17 @@ export function parseQuotaData(provider, data) {
case "codex":
if (data.quotas) {
Object.entries(data.quotas).forEach(([quotaType, quota]) => {
let displayName = quotaType;
if (quotaType === "spark_session") displayName = "Spark (5h)";
else if (quotaType === "spark_weekly") displayName = "Spark (Weekly)";
else if (quotaType === "session") displayName = "5h";
else if (quotaType === "weekly") displayName = "Weekly";
else if (quotaType === "review_session") displayName = "Review (5h)";
else if (quotaType === "review_weekly") displayName = "Review (Weekly)";
normalizedQuotas.push({
name: quotaType,
name: displayName,
quotaType,
used: quota.used || 0,
total: quota.total || 0,
remaining: quota.remaining,
@@ -566,6 +575,22 @@ export function parseQuotaData(provider, data) {
}
break;
case "zed":
// Edit predictions + optional hosted model_requests; unlimited uses remainingPercentage.
if (data.quotas) {
Object.entries(data.quotas).forEach(([name, quota]) => {
normalizedQuotas.push({
name,
used: quota.used || 0,
total: quota.total || 0,
resetAt: quota.resetAt || null,
remainingPercentage: quota.remainingPercentage,
unlimited: quota.unlimited,
});
});
}
break;
default:
// Generic fallback for unknown providers
if (data.quotas) {