Skip to content

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

fix(quota): audit-discovered stale eslint-disable in planResolver + sidebar-costs-section test drift (B/F10)

diegosouzapw5b5670453855
diff --git a/src/lib/quota/planResolver.ts b/src/lib/quota/planResolver.ts
index e93717452b..a8a02647a7 100644
--- a/src/lib/quota/planResolver.ts
+++ b/src/lib/quota/planResolver.ts
@@ -34,13 +34,13 @@ export interface RuntimeSignals {
*
* @param connectionId Unique provider connection ID (from DB).
* @param provider Provider name (e.g. "codex", "kimi").
- * @param runtimeSignals Optional upstream headers / signals (v1: ignored).
+ * @param _runtimeSignals Optional upstream headers / signals (v1: ignored, reserved for future use).
* @returns The effective ProviderPlan (never throws).
*/
export function resolvePlan(
connectionId: string,
provider: string,
- runtimeSignals?: RuntimeSignals // eslint-disable-line @typescript-eslint/no-unused-vars
+ _runtimeSignals?: RuntimeSignals
): ProviderPlan {
// 1. Manual DB override
try {
diff --git a/tests/unit/sidebar-costs-section.test.ts b/tests/unit/sidebar-costs-section.test.ts
index fb5156fa17..fd34579608 100644
--- a/tests/unit/sidebar-costs-section.test.ts
+++ b/tests/unit/sidebar-costs-section.test.ts
@@ -12,15 +12,22 @@ test("costs section exists in SIDEBAR_SECTIONS", () => {
assert.ok(section, "costs section must exist");
});
-test("costs section has exactly 4 items in the correct order", () => {
+test("costs section has exactly 5 items in the correct order (F9 adds costs-quota-plans)", () => {
const section = findSection("costs");
assert.ok(section, "costs section must exist");
const items = sidebarVisibility.getSectionItems(section);
- assert.equal(items.length, 4, "costs section must have 4 items");
+ // F3 created 4 items; F9 added costs-quota-plans as the 5th (B5 / B19).
+ assert.equal(items.length, 5, "costs section must have 5 items after F9");
const itemIds = items.map((i) => i.id);
- assert.deepEqual(itemIds, ["costs", "costs-pricing", "costs-budget", "costs-quota-share"]);
+ assert.deepEqual(itemIds, [
+ "costs",
+ "costs-pricing",
+ "costs-budget",
+ "costs-quota-share",
+ "costs-quota-plans",
+ ]);
});
test("costs section items have correct hrefs", () => {
@@ -35,6 +42,7 @@ test("costs section items have correct hrefs", () => {
{ id: "costs-pricing", href: "/dashboard/costs/pricing" },
{ id: "costs-budget", href: "/dashboard/costs/budget" },
{ id: "costs-quota-share", href: "/dashboard/costs/quota-share" },
+ { id: "costs-quota-plans", href: "/dashboard/costs/quota-share/plans" },
]);
});