fix: remove clicking prompting causing invalid clicks

This commit is contained in:
Zoe
2026-09-20 22:53:48 -05:00
parent de1ae93ecc
commit 79e80fe361
4 changed files with 14 additions and 15 deletions
+7 -3
View File
@@ -19,9 +19,13 @@ test("adapter accepts tool calls and rejects truncated responses", async (t) =>
await assert.rejects(complete(config, [], []), /incomplete/);
});
test("tool descriptions advertise the configured coordinate convention", () => {
assert.match(toolsForCoordinates("normalized_1000")[0]?.function.description ?? "", /0\.\.1000/);
assert.match(toolsForCoordinates("pixels")[0]?.function.description ?? "", /not normalized/);
test("tool descriptions do not inject coordinate normalization or pixel prompting", () => {
for (const space of ["pixels", "normalized_1000"] as const) {
const description = toolsForCoordinates(space)[0]?.function.description ?? "";
assert.doesNotMatch(description, /normalized/i);
assert.doesNotMatch(description, /pixel/i);
assert.doesNotMatch(description, /0\.\.1000/);
}
});
test("tool inputs reject invalid commands, bounds, and action names", () => {