fix(server): list skills from plugins in the Antigravity instance profile #38960
Mergedjuliusmarmingemerged 2 commits into
main fromrefs/pull/38960/headmerged by juliusmarminge View on GitHubtanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -240,2 +251,21 @@240251 yield* scanDirectory(root.directory, root.scope, true);241252 }253+254+ const pluginsDirectory = path.join(input.profileDirectory, "config", "plugins");255+ const plugins = yield* readIfPresent(256+ fileSystem.readDirectory(pluginsDirectory),257+ pluginsDirectory,258+ );259+ if (plugins !== undefined && plugins.length > 0) {260+ const configPath = path.join(input.profileDirectory, "config", "config.json");261+ const configInfo = yield* readIfPresent(fileSystem.stat(configPath), configPath);262+ if (configInfo?.type === "File" && configInfo.size > BigInt(MAX_SKILL_BYTES)) {263+ return yield* new AntigravitySkillsProbeError({264+ reason: "scan-budget-exhausted",265+ path: configPath,266+ });267+ }268+ const config =269+ configInfo?.type === "File"270+ ? yield* readIfPresent(fileSystem.readFileString(configPath), configPath)271+ : undefined;@@ -241,0 +258,21 @@258+ );259+ if (plugins !== undefined && plugins.length > 0) {260+ const configPath = path.join(input.profileDirectory, "config", "config.json");261+ const configInfo = yield* readIfPresent(fileSystem.stat(configPath), configPath);262+ if (configInfo?.type === "File" && configInfo.size > BigInt(MAX_SKILL_BYTES)) {263+ return yield* new AntigravitySkillsProbeError({264+ reason: "scan-budget-exhausted",265+ path: configPath,266+ });267+ }268+ const config =269+ configInfo?.type === "File"270+ ? yield* readIfPresent(fileSystem.readFileString(configPath), configPath)271+ : undefined;272+ const preferences = config === undefined ? undefined : decodePluginPreferences(config);273+ const disabled = new Set(274+ Object.entries(275+ (preferences?._tag === "Some" ? preferences.value.plugins : undefined) ?? {},276+ ).flatMap(([name, plugin]) => (plugin.enabled === false ? [name] : [])),277+ );278+ for (const plugin of plugins.toSorted()) {
juliusmarminge merged this292a8e4
juliusmarminge closed this
Sign in to join this conversation.


Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Other scenarios#
All 64 scenario measurements match
main.All 64 scenario measurements
short turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsshort turn resumeWebSocket decodedshort turn resumeWebSocket messageslong turn running, cold openHTTP decodedlong turn running, cold openrowslong turn running, history pageHTTP decodedlong turn running, history pagerowslong turn finished, cold openHTTP decodedlong turn finished, cold openrowslong turn finished, socket cold openWebSocket decodedlong turn finished, socket cold openWebSocket messageslong turn finished, socket cold openrowslong turn finished, work pageHTTP decodedlong turn finished, work pagerowsidle thread resumeWebSocket decodedidle thread resumeWebSocket messagesfleet shell snapshotHTTP decodedfleet shell snapshotrowsfleet shell subscribeWebSocket decodedfleet shell subscribeWebSocket messagesfleet shell resume checkHTTP decodedfleet shell resume checkrowsstale shell reloadHTTP decodedstale shell reloadrowsstale shell resumeWebSocket decodedstale shell resumeWebSocket messagesstale todo list cold openHTTP decodedstale todo list cold openrowsstale todo list cold opennodesstale todo list cold opensubagentsstale todo list cold openplansstale todo list cold openproviderTurnsstale todo list cold opencheckpointsBaseline:
eb90b79· PR result:d09e004· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.