If unset or non-zero: write the exact JPEG passed to OCR into `computer_use_debug` under the app data dir (see implementation). Set `BITFUN_COMPUTER_USE_OCR_DEBUG=0` to disable.
()
| 53 | |
| 54 | /// If unset or non-zero: write the exact JPEG passed to OCR into `computer_use_debug` under the app data dir (see implementation). Set `BITFUN_COMPUTER_USE_OCR_DEBUG=0` to disable. |
| 55 | fn ocr_debug_save_enabled() -> bool { |
| 56 | !matches!( |
| 57 | std::env::var("BITFUN_COMPUTER_USE_OCR_DEBUG"), |
| 58 | Ok(v) if v == "0" || v.eq_ignore_ascii_case("false") |
| 59 | ) |
| 60 | } |
| 61 | |
| 62 | /// Same directory as agent `screenshot` debug (`workspace/.bitfun/computer_use_debug`), when PathManager is available. |
| 63 | fn computer_use_ocr_debug_dir() -> PathBuf { |
no outgoing calls
no test coverage detected