browser-use--browser-harness
6e86f7cf2b
A single BH_TMP_DIR conflated two storage concerns with opposite constraints: sock/port/pid files are bound by AF_UNIX sun_path (104 bytes on macOS, 108 on Linux) and must live in a short path; log files and screenshots have no length limit and benefit from a deep, indexable, persistent location. Forcing both into one dir means callers either bury screenshots under /tmp or risk silently overrunning sun_path. Decouple with a new BH_RUNTIME_DIR for sock/port/pid. BH_TMP_DIR keeps log/screenshot duty. BH_RUNTIME_DIR falls back to BH_TMP_DIR, then to /tmp on POSIX or tempfile.gettempdir() on Windows, so single-dir callers keep working unchanged.