mirror of
https://github.com/nightly-labs/openbot.git
synced 2026-11-26 02:29:31 +08:00
* Use the memory guard on self-hosted and Docker servers A self-hosted server and the Docker container now create the memory guard of a hosted server. New turns wait when free memory is low, a fixed number of turns run at the same time, and the browser gets the low-memory signal. The desktop app does not change. - Rename HostedServerMemory to ServerMemory. - When no cgroup v2 memory limit can be read, use the machine memory and log one warning. Before, a missing memory.max stopped the guard. - `openbot status` shows the memory limit, the free memory, the level and the turn limit. - Document the guard for self-hosted servers and containers. Closes #2093 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix the review findings of the server memory guard - In the container, start Xvfb in a subshell, so tini adopts it. As a child of main, it got the OOM value of the agent processes. - A self-hosted or container server has no plan, so its low-memory notice does not tell the user to buy a larger plan. - Use the machine memory only when memory.max is missing. Another read error is a read error, as before. - Read /proc with a limit of 16 at the same time. - Correct the comments that say only a hosted server reads memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>