The best way to control Claude Code, Codex and more from any computer or phone
fix(acp-registry): commands past the 128th are no longer dropped (#33768)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 10, 2026 at 01:14 UTC
7171fdd7716b05dc1b4be40c26ac78e8bb35f80c
2 files changed
+5
-7
apps/server/src/provider/AcpRegistryProbe.test.ts
+5
-3
@@ -273,7 +273,7 @@ describe("ACP Registry probe", () => {
273
},
274
);
275
276
- it("bounds and de-duplicates advertised commands", () => {
276
+ it("keeps every distinct advertised command and de-duplicates the rest", () => {
277
const commands = normalizeAcpRegistryCommands([
278
{
279
name: "create_plan",
@@ -285,9 +285,11 @@ describe("ACP Registry probe", () => {
285
name: `command_${index}`,
286
description: "",
287
})),
288
+ { name: "$late-skill", description: "Advertised after 128 commands" },
289
]);
290
290
- expect(commands.slashCommands).toHaveLength(128);
291
+ expect(commands.slashCommands).toHaveLength(141);
292
+ expect(commands.slashCommands.at(-1)).toEqual({ name: "command_139" });
293
expect(commands.slashCommands[0]).toEqual({
294
name: "create_plan",
295
description: "Create a plan",
@@ -296,7 +298,7 @@ describe("ACP Registry probe", () => {
298
expect(
299
commands.slashCommands.filter((command) => command.name.toLowerCase() === "create_plan"),
300
).toHaveLength(1);
299
- expect(commands.skills).toEqual([]);
301
+ expect(commands.skills.map((skill) => skill.name)).toEqual(["late-skill"]);
302
});
303
304
it("routes dollar-prefixed ACP commands to the provider skill menu", () => {
packages/provider-acp-registry/src/server/probe.ts
-4
@@ -41,7 +41,6 @@ const MAX_MODELS = 256;
41
const MAX_ID_LENGTH = 128;
42
const MAX_NAME_LENGTH = 160;
43
const MAX_DESCRIPTION_LENGTH = 1_024;
44
-const MAX_COMMANDS = 128;
44
const MAX_COMMAND_LINE_LENGTH = 2_048;
45
const PROBE_TIMEOUT_SECONDS = 60;
46
const PROBE_TIMEOUT = `${PROBE_TIMEOUT_SECONDS} seconds`;
@@ -215,7 +214,6 @@ export function normalizeAcpRegistryCommands(
214
const seen = new Set<string>();
215
const slashCommands: Array<ServerProviderSlashCommand> = [];
216
const skills: Array<ServerProviderSkill> = [];
218
- let accepted = 0;
217
for (const command of commands) {
218
const name = boundedOpaqueValue(command.name, MAX_ID_LENGTH);
219
if (name === undefined) continue;
@@ -241,8 +239,6 @@ export function normalizeAcpRegistryCommands(
239
...(hint ? { input: { hint } } : {}),
240
});
241
}
244
- accepted += 1;
245
- if (accepted === MAX_COMMANDS) break;
242
}
243
return { slashCommands, skills };
244
}