fix(antigravity): passthrough tab-autocomplete + mark default agent slot mandatory
MODEL_NO_MAP guard never re-routes Antigravity tab-autocomplete (tab_* models) so latency-critical inline completion stays native. Flags gemini-3.5-flash-low (agent/Default) as mandatory in the dashboard. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
decolua
co-authored by
Cursor
parent
61d546627e
commit
38b73bfc6b
+9
-1
@@ -7,7 +7,7 @@ const dns = require("dns");
|
||||
const { promisify } = require("util");
|
||||
const { execSync } = require("child_process");
|
||||
const { log, err, dumpRequest, createResponseDumper, clearDumpDir } = require("./logger");
|
||||
const { IS_DEV, LSOF_BIN, TARGET_HOSTS, URL_PATTERNS, MODEL_SYNONYMS, MODEL_PATTERNS, getToolForHost } = require("./config");
|
||||
const { IS_DEV, LSOF_BIN, TARGET_HOSTS, URL_PATTERNS, MODEL_SYNONYMS, MODEL_PATTERNS, MODEL_NO_MAP, getToolForHost } = require("./config");
|
||||
const { DATA_DIR, MITM_DIR } = require("./paths");
|
||||
const { getCertForDomain } = require("./cert/generate");
|
||||
const { getMitmAlias } = require("./dbReader");
|
||||
@@ -330,6 +330,14 @@ const server = https.createServer(sslOptions, async (req, res) => {
|
||||
}
|
||||
|
||||
const model = extractModel(req.url, bodyBuffer);
|
||||
|
||||
// Intentional passthrough: some models must never be re-routed (e.g. Antigravity
|
||||
// tab-autocomplete) so latency-critical inline completion stays native. Silent — this
|
||||
// is by design, not a leak, and fires per keystroke. See MODEL_NO_MAP in config.js.
|
||||
if (model && (MODEL_NO_MAP[tool] || []).some((re) => re.test(model))) {
|
||||
return passthrough(req, res, bodyBuffer);
|
||||
}
|
||||
|
||||
const mappedModel = getMappedModel(tool, model);
|
||||
if (!mappedModel) {
|
||||
return passthrough(req, res, bodyBuffer);
|
||||
|
||||
Reference in New Issue
Block a user