| Cua hotkey timeout | No response after 5s | Retry with different window_id (Electron apps sometimes shift window IDs) |
| Cua move_cursor/click JSON parse error (Cua v0.5.3 proxy bug) | JSON parse error: expected value at line 1 column 92 | Switch to Hermes browser tool instead of Cua for that action. Cua proxy has intermittent JSON parsing failures with large window_ids or unicode titles. |
| Cua click requires both (x,y) and window_id, OR element_index array | Provide either (element_index + window_id) or (x + y). pid is always required. | Pass "x":N,"y":N for pixel coords, or "element_index":[N] for accessibility element. Both need pid + window_id. |
| Vision AI can't parse screenshot | API returns unclear result | Cap again with different window state (e.g. after a click, or switch tab first) |
| Patch fails | Lint error or file not found | Read file first, verify path, try search_files to locate. If lint is unrelated (e.g. tsc not installed), ignore it. |
| Build fails | CLI exit code != 0 | Read last 50 lines of build log, look for ERROR patterns. Cocos CLI exits with SIGTERM (code 36) on success โ not a real failure. |
| DevTools not responding | get_window_state returns 0 windows | kill -9 old PID, relaunch via open -a |
| Multiple app instances | list_windows has >1 main window | Match by title string (e.g. "ไฝๅฟ - ๅพฎไฟกๅผๅ่
ๅทฅๅ
ท"). Grep `ps aux |
| Cocos Creator project.json not updated | Build uses wrong scene | Verify startScene UUID matches expected scene. project.json scenes dict only lists known scenes โ add new scenes there. |
| Google OAuth popup in headless browser | Popup opens in a new window headless can't handle | DO NOT use Hermes browser tool for Google OAuth. Instead, navigate to the service directly (e.g. github.com/login), click "Continue with Google", type email in the embedded popup, then let user type password manually. |