Urgent.News

What's breaking now, across hundreds of outlets.

Tech

UI-TARS Desktop cancels every step at 30 seconds? It's a hard-coded timeout — how to prove it, and what the fix involves

UI-TARS Desktop cancels every step at 30 seconds? It's a hard-coded timeout — how to prove it, and what the fix involves This is the second article in this series. The first one covered getting local AI running on a Polaris card via Vulkan at all. This one is about a single defect that nearly ended the desktop-agent part of that project on its first evening — and that will eat yours too if you…

The UI-TARS Desktop application on a modest hardware setup, like a modded RX 580 with 16 GB of VRAM and a 2-core Celeron processor, cancels steps at roughly 30 seconds due to a hard-coded timeout. This defect nearly ended the desktop-agent part of the project on its first evening. The symptom is that steps appear to complete successfully initially but then get cancelled around 30 seconds, reporting a "Connection error" and causing the run to die or retry pointlessly.

The llama-server log shows no issues, and the server is still working on the answer when the app stops listening. Many people initially investigate the connection, but the error is not related to connection issues. The root cause of the problem is that UI-TARS Desktop 0.2.4 hard-codes a 30-second timeout on model requests without providing a settings field or configuration file to change it.

The solution is to raise both timeouts from 3e4 (30,000 milliseconds) to 6e5 (ten minutes) in the code located in `dist/main/main.js`.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

More from Dev.to on urgent.news

Get the news by email. Yesterday's most-covered stories, every morning.

See today's edition · More options

More in Tech

More from Saturday, 5 December 2026 →