Urgent.News

What's breaking now, across thousands of outlets.

Tech

Coordinate Clicks Are a Trap: Driving a GUI Agent Without Pixel Guessing

The first version of my GUI agent clicked by pixel coordinates. It worked in demos and failed constantly in practice, and the reason is boring: pixels do not move, but content does. Here is what I changed, in order of impact. 1. Read the tree before you click Both desktop and mobile expose an accessibility tree: uiautomator dump on Android, UI Automation on Windows, the accessibility APIs on…

The most time-consuming debugging challenge I encountered while building my GUI agent was dealing with stale screens. Unlike ambiguous no-ops that could either indicate a failed action or a silent failure, stale screens presented a unique problem. Screenshots become outdated within seconds, and caching the plan rather than the pixels is crucial.

The agent must constantly verify if the screen has changed, if the expected text appears, or if the node count has altered, all with just a single boolean per step. Failure to do so results in the agent performing actions on outdated information, leading to incorrect outcomes. This issue is particularly critical when dealing with rapidly changing user interfaces, where even a brief delay can lead to significant errors.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

A canary you keep is a canary you start trusting

A reader named Zhang Enquan came back to a thing I wrote about green builds. He had run 10,000 real prompts through a tokenizer, and the first thing he checked was not the output.

  • 40.5% of samples deviated by more than 20% from the pipeline
  • A canary, a single known prompt, verifies pipeline integrity
  • Trust in canary check is crucial for green builds

I'm Building a Hiring Platform That Starts With People, Not Job Descriptions

A Disconnect I've always felt misunderstood. My career path doesn't help. Game development, accounting, logistics, legal, real estate and even (shoe) sales, management, and warehousing on the…

  • Author, a software engineer, seeks alternative to traditional resumes
  • Platform focuses on candidates' capabilities with provided receipts
  • Pilot invites senior software engineers, no personal info shared

Mastering Flexbox: The Ultimate Stress-Free Guide to Modern Web Layouts

Mastering Flexbox: The Ultimate Stress-Free Guide to Modern Web Layouts When you start learning HTML, everything makes complete sense until you try to position elements on a screen.

  • Flexbox simplifies web layout positioning
  • Four core properties control child elements
  • Flex-direction changes layout track orientation

More from Tuesday 20 October →