# Computer Use Recovery

> Recover from FocusFailure and wrong-window input when using computer-use-mcp.

- Skill: `zavora-ai/computer-use-recovery` (Agent Skill)
- Install (CLI): `npx skillmds@latest add zavora-ai/computer-use-recovery`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zavora-ai/computer-use-recovery/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: zavora-ai (https://skillmd.com/u/zavora-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zavora-ai/computer-use-recovery

---


# Focus / window recovery

When a mutating tool returns `focus_failed` or similar:

| suggestedRecovery | Action |
|---|---|
| `activate_window` | `activate_window(requestedWindowId)` then retry |
| `unhide_app` | `unhide_app` → wait → `activate_window` → retry |
| `open_application` | `open_application` → wait → retry |

If a third-party app steals focus after activation, retry once with `focus_strategy: "prepare_display"`, then `unhide_app` for any `hiddenBundleIds` when done.

Always re-resolve `window_id` via `list_windows` if the target window may have moved or closed.

