fix: remove clicking prompting causing invalid clicks
This commit is contained in:
+7
-3
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user