refactor(browser): remove arbitrary capture ceilings

This commit is contained in:
morluto
2026-09-29 15:31:27 +08:00
parent 4cea84d7cb
commit 5dd3b4655e
16 changed files with 228 additions and 125 deletions
+11
View File
@@ -35,4 +35,15 @@ describe("inline web screenshots", () => {
}).success,
).toBe(false);
});
it("accepts a caller-supplied target ID without a length ceiling", () => {
const targetId = "target-".repeat(100);
expect(
captureWebScreenshotInputSchema.parse({
cdp_endpoint: "http://127.0.0.1:9222",
allowed_origins: ["https://app.example.test"],
target_id: targetId,
}).target_id,
).toBe(targetId);
});
});