Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
feat(open-sse): propagate quotaSoftDeprioritize from chatCore to combo candidate (B/G2)
diegosouzapw0adcdaa1e571
diff --git a/open-sse/handlers/chatCore.ts b/open-sse/handlers/chatCore.tsindex 18358ff38b..dd7f7b4113 100644--- a/open-sse/handlers/chatCore.ts+++ b/open-sse/handlers/chatCore.ts@@ -3418,9 +3418,18 @@ export async function handleChatCore({);}}- // Suppress unused variable lint warning — quotaSoftDeprioritize is available for- // combo.ts to read when candidateBuilder populates quotaSoftPenalty in the future.- void quotaSoftDeprioritize;+ // G2: Propagate soft penalty to the current candidate so combo scoring can deprioritize.+ if (quotaSoftDeprioritize && isCombo && comboStepId) {+ try {+ const { setCandidateQuotaSoftPenalty } = await import("../services/combo");+ setCandidateQuotaSoftPenalty(comboExecutionKey, comboStepId, true);+ } catch (err) {+ log?.warn?.(+ "QUOTA_SHARE",+ `[quotaShare] could not set soft penalty on candidate: ${err instanceof Error ? err.message : String(err)}`+ );+ }+ }// === /Quota Share enforcement PRE-hook ===// Get executor for this provider (with optional upstream proxy routing)