mirror of
https://github.com/OLmatter/glm-coding-helper.git
synced 2026-10-07 15:38:59 +08:00
When OCR misreads a character (e.g. 钡→部 lookalike) or multi-window requests cross, prompt chars don't match box chars exactly -> indices_for_prompt raised RuntimeError -> worker crashed -> captcha failed. Now map_prompt_to_boxes catches the mismatch and falls back to candidate_scores: each prompt char picks the box with highest candidate score for that char. Only warns to stderr, never crashes. Worst case the click order is wrong but the worker stays alive for the next captcha.