arXiv:2610.27645cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27645

CUA-Recovery: Benchmarking Error Recovery in Long-Horizon Computer-Use Agents

Xu Hu, Haoming Li, Yuxiang Wang, Jinxin Yang, Kangshuo Li, Licheng Wang, Dingyi Kang, Jiayu Song, Tianhao Wang, Zhanhua Hu, Xu Yang, Qiannan Li, Bingzhe Li, Feng Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

As computer-use agents (CUAs) move to long-horizon workflows spanning multiple applications, undetected errors can silently corrupt persistent state and cause cascading failures in subsequent actions. Reliable error detection and recovery have therefore become critical bottlenecks for building robust CUAs. However, existing benchmarks focus primarily on end-to-end task performance, providing limited insight into whether agents can detect and recover from errors during execution. The few benchmarks that evaluate recovery rely largely on manually injected errors, which may not reflect the types or horizons of failures induced by real agent policies. This mismatch limits both realistic evaluation and systematic progress. In this paper, we introduce CUA-Recovery, a benchmark comprising test and training suites across multiple desktop applications. We construct the benchmark using ReRail, a framework for synthesizing long-horizon tasks and trajectories in a persistent desktop environment. ReRail composes MyPCBench tasks into new long-horizon workflows with executable ground truth, collects verifier-confirmed failures from multiple policies, and turns them into verified recovery trajectories. ReRail yields CUA-Recovery, which comprises a human-verified test suite of 2,250 erroneous states over 100 tasks and a training suite of 8.6K trajectories over 377 tasks. Evaluation on the test suite shows that agents struggle both to recognize inherited errors and to complete the task. Across six agents and six takeover depths, Error Awareness Rate (EAR) reaches at most 44.0% and Pass@3 at most 25.5%. After fine-tuning Qwen3.5-35B-A3B on the training suite, its average EAR rises from 19.9% to 35.2% on held-out recovery states, and its Rubric Score goes from 5.0% to 16.1%. It also gains 15.3 points on MyPCBench and 10.8 points on Odysseys for Pass@3, showing that the training trajectories help both with recovery and with completing tasks from a clean start. Our code is available at https://github.com/xu-hu-2002/CUA-Recovery.

1 INTRODUCTION

Computer-use agents (CUAs) operate desktop applications through screenshots, mouse, keyboard, and the command line, and they are now evaluated on workflows that span many applications and hundreds of steps. OSWorld 2.0 raises the typical task from about 30 tool calls to more than 300 (Yuan et al., 2026), and Agents' Last Exam collects about 1,500 professional workflows (Sun et al., 2026b). On both benchmarks, the best agents earn far more partial credit than full completions: 77.7% versus 44.3% on OSWorld 2.0, and 59.3% versus 34.2% on Agents' Last Exam. 1^{1} Agents thus finish most of a task but fail on a few steps. The cause lies in persistent state: an early wrong action is written into files, spreadsheets, or databases, and later steps build on its result. The error is rarely visible when it happens; it surfaces many steps later, when the step that caused it has already left

∗^{*}Equal contribution. †\daggerCorresponding authors.

1^{1}Public leaderboards, accessed September 2026: https://snorkel.ai/leaderboard/os-world-2-0/ and https://snorkel.ai/leaderboard/agents-last-exam/.

Kimi - K3 (source agent)

Perfect Pass & Rubric 0.83

error horizon h=40

Figure

step 3: root cause action

step 13: built from the menu

step 29: "usual" invented

step 43: false completion

ReRail-35B-A3B takes over at step 3 (d=0), inherits the history up to the root-cause step, and recovers.

Perfect Pass

Figure

step 5: opens the Orders page

step 6: scrolls to Sweetgreen orders

step 31: checks items in each order

step 40: correct completion

Figure 1: Case study: recovering from a real policy-induced error. The user asks for his usual Sweetgreen order. Top: Kimi-K3 fails to notice and recover from the error. Bottom: ReRail-35B-A3B takes over at the root-cause step, detects the error, and recovers from it.

the agent's context. Figure 1 shows a real case: Kimi-K3 fails to open the order history at step 3, keeps building on this mistake, and the error surfaces only at step 43, when the agent falsely reports completion. In such tasks, whether an agent can notice and repair its own errors decides whether it completes the task.

On the training side, recovery requires trajectories that follow an error from the mistake to its repair: the agent makes a mistake, the mistake stays unnoticed for many steps, and the agent later finds and repairs it. Existing CUA training sets capture only parts of this process (Table 1). Their trajectories average 3.8–39.3 steps and rarely span multiple applications (at most 26.1% where reported). When errors are included, they come from human demonstrations, synthetic injection, or self-reports rather than failures produced by the acting policy. GUI-Reflection is the only dataset with explicit corrections, but each correction immediately follows a single injected error. CUA-Recovery-Train fills this gap with 60-step trajectories, 67.5% of which span multiple applications. Each trajectory starts from a policy-induced failure, preserves the intervening erroneous history, and ends with a verifier-confirmed recovery.

On the evaluation side, long-horizon benchmarks score only the final outcome, which cannot tell whether an agent detected and fixed its own errors along the way. Existing datasets and benchmarks differ from real long-horizon failures in three ways. (1) Coverage. Most datasets contain only perfect trajectories; those that contain errors take them from human demo errors, injected errors, or self-reported failures, and these are mostly low-level execution errors such as invalid clicks (Wang et al., 2025; Wu et al., 2025; Jung et al., 2026). We annotated the 619 failures of six agents in CUA-Recovery-Test and found that real errors lie mostly in decisions: planning and perception account for 57.3%57.3\% of root causes, whereas execution errors account for 84.3%84.3\% of AgentNet and

Table 1: Comparison with existing CUA training sets. Recovery indicates whether the data contains error corrections: Single-step corrections immediately follow an injected error; Verified recoveries start from real failure prefixes and are kept only if the verifier confirms task completion.

BenchmarkPlatformTraj.Mean stepsMulti-appInterfaceError sourceRecovery
AndroidControl (Li et al., 2024)Mobile15,2835.5-GUIOnly perfect traj.×
AgentTrek (Xu et al., 2025)Web10,39812.1-GUIOnly perfect traj.×
ScaleCUA (Liu et al., 2026b)Cross19K9.0-GUIOnly perfect traj.×
VideoAgentTrek (Lu et al., 2025a)Cross39K39.3-GUIOnly perfect traj.×
AgentNet (Wang et al., 2025)Desktop22,53218.87.2%GUIHuman demo errors×
GUI-Reflection (Wu et al., 2025)Mobile8,6403.8-GUIInjected errorsSingle-step
ProCUA-SFT (Jung et al., 2026)Desktop93,56629.726.1%GUISelf-reported×
CUA-Recovery-TrainDesktop8,57760.067.5%GUI + CLIPolicy-inducedVerified

Figure

Figure 2: Overview of our methodology and benchmark.

71.2% of GUI-Reflection root causes (Figure 3a). (2) Horizon. Existing trajectories are short, and their errors are visible at the step they occur, while 78.1% of the errors we annotated surface three or more steps after the root cause, with a median of 17 steps (Figure 3b). (3) Interface. Real computer work is hybrid: agents inspect visual state through the GUI and run precise, bulk operations through the command line, both on the same application state. Existing resources fall short of this setting in two ways. First, training data contain mostly GUI actions (Table 1), so a model trained on them rarely sees the two interfaces used together. Second, scoring often relies on screenshots, yet frontier agents prefer the command line when it is available and produce few or no screenshots. On MyPCBench, once the judge reads terminal output, tool-call responses, GUI action logs, and screenshots together, GPT 5.5 rises from the officially reported 45.1% Perfect Pass (Jang et al., 2026a) to 85.0% Pass@3. Screenshot-based scoring therefore underestimates such agents and cannot compare agents that interact in different ways on equal terms.

These three gaps motivate our work. Firstly, we propose CUA-Recovery, a benchmark for error recovery in long-horizon computer use (Figure 2). Its test set, CUA-Recovery-Test, contains 2,250 human-verified erroneous states over 100 tasks, drawn from 619 failed rollouts of six agents. An agent takes over each state 0 to 25 steps after the root cause and is not told that an error occurred. We report whether it notices the inherited error (Error-Awareness Rate, EAR), how much of the task it completes (Rubric Score), and whether the task is completed in any one of three runs (Pass@3). The judge reads terminal output, tool calls, and screenshots together, so agents that act through the GUI and the command line are scored on equal terms. Its training set, CUA-Recovery-Train, contains 8.6K verified recovery trajectories over 377 tasks.

Secondly, we build CUA-Recovery with ReRail, a framework that synthesizes recovery data from real failures. ReRail converts each seed task into an executable intermediate representation whose gold lineage fixes the correct value at every step, and composes these tasks into long multi-application workflows over shared persistent state. The gold lineage removes the need to inject errors. Several agents execute the workflows through GUI and CLI; ReRail keeps only the failures that the task verifier confirms, locates each root cause against the gold lineage, and cuts the rollout at several depths after it. Every erroneous state thus comes from an agent's own decision, and its takeover depth is controlled. For training, the base model, Qwen3.5-35B-A3B, continues from each cut under hints of increasing specificity. A continuation is kept only if the verifier confirms that it completes the task, and the hint is then removed, so the model learns to notice and repair the error without being told.

On CUA-Recovery-Test, Pass@3 reaches at most 25.5% across six agents and all takeover depths, and clean-start success does not imply recovery: Kimi-K3 solves 66.9% of MyPCBench tasks from scratch but notices at most 18.5% of the errors in its own failures. Notably, training on CUA-Recovery-Train narrows this gap. The ReRail-35B-A3B recovers better than its base model, surpasses Kimi-K3 on Kimi-K3's own failures at early takeover depths, and raises clean-start Pass@3 from 9.2% to 24.5% on MyPCBench and from 24.1% to 34.9% on Odysseys.

In summary, our contributions are:

• CUA-Recovery, an evaluation and training benchmark built from real policy-induced failures in long, stateful computer-use workflows, with 2,250 human-verified test states and 8.6K verified recovery trajectories in training set.

• ReRail, a pipeline that composes seed tasks into long workflows with gold lineage and turns verifier-confirmed agent failures into test states and verified recoveries.

• A controlled study showing that strong clean-start performance does not imply reliable recovery, and that fine-tuning on CUA-Recovery-Train improves both recovery and clean-start performance.

References (98)