MCPcopy Create free account
hub / github.com/GCWing/BitFun / ocr_debug_save_enabled

Function ocr_debug_save_enabled

src/apps/desktop/src/computer_use/screen_ocr.rs:55–60  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
55fn 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.
63fn computer_use_ocr_debug_dir() -> PathBuf {

Callers 1

save_ocr_debug_jpegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected