Grok Bot computer: host-main restarts 4-5 times a day, fast RSS growth to ~4.9 GB, csnaps 2.7-3.6 GB, 16 GB with no swap

Where does the bug appear (feature/product)?

Grok Bot

Describe the Bug

Since 2026-10-20 host-main (the Sand host process, node) restarts on its own several times a day, with no action from me. 17 distinct PIDs were seen between 10-20 23:03 and 10-26 08:02 (UTC-3, approximate, minimum counts). 5 restarts on 10-25 (about 08:04, 11:52, 15:58, 19:57, 22:52) and 3 on 10-24 (about 03:24, 11:44, 15:16).

Within 2 to 15 minutes of each restart host-main reaches 2.8 to 4.9 GB RSS (4.89 GB at only 137 seconds on 10-26). Before 10-22 it was stable at 1.3 to 2.5 GB. At each restart csnaps also restarts and takes 2.7 to 3.6 GB (once at 100% CPU), up from 0.8 to 1.1 GB a week earlier.

Available RAM drops to 3.7 to 4.6 GB of 16 GB, no swap. Load average reaches 302, 304, 592 and 663 near restarts (0.1 to 5 when calm). dart analyze, normally about 35 s, took 328 s once during low RAM.

What I checked on the computer: /workspace has 4.25 million files (35 GB), 93% small .yaml translation copies; 616 thousand more files outside /workspace; no file over 100 MB in saved skills, plugins or workflows; /var/lib/sand/telemetry is 10 GB (9.2 GB of git packs for /workspace); only 2 browser processes running. I killed and restarted nothing.

This looks similar to “Memory Bleeding” (Memory Bleeding) and “host process leaks memory until it’s killed” (ticket T-I16486), but my skills folder is small (1.6 MB), so it is not a huge skill file.

Questions:

  1. Why does host-main restart without any action from me (OOM kill, crash or supervised restart)? Which log should I attach?
  2. Is the fast RSS growth after restart and the larger csnaps footprint a known issue? Does csnaps memory scale with the number of files in /workspace, and does it honor an ignore file such as .cursorignore?
  3. Is there a supported way to cap csnaps, clean /var/lib/sand/telemetry, or add swap?

Has anyone else seen the same pattern? No credentials or secrets are included.

Steps to Reproduce

No manual steps: it happens on its own on the Grok Bot computer (see description above).

Operating System

Linux

Version Information

Not available (Linux, Grok Bot host-main process; version not checked)

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hi @Pablo_Statile,

The restarts aren’t the kernel’s OOM killer. The host process aborts itself as its memory climbs, and the computer’s supervisor starts it again within seconds. You don’t need to attach any logs, we can see it on our side.

This is a known issue the team is aware of, and I’ve added your report to it. It appears tied to computers that hold a very large number of files, and the number of files your computer saves grew sharply right around when this started.

In the meantime, the best lever is cutting the file count in /workspace. Deleting the duplicate .yaml translation copies, or packing them into a single archive (a .tar.gz, for example), should likely take a lot of pressure off. csnaps skips paths excluded by .gitignore in /workspace (and .cursorignore should work too), so excluding those folders helps csnaps as well.

There’s no supported setting to cap csnaps or add swap. /var/lib/sand/telemetry has its own size limits and clears itself, so it’s best not to delete it by hand.

Hi Colin, thanks a lot for the clear answer. We are already cutting the file count: we are deleting the duplicate translation copies and keeping only one export per app, plus a retention policy with temporary folders deleted after 7 days. Two quick questions so we do it safely: (1) if we exclude folders with .gitignore or .cursorignore in /workspace, are those paths also left out of the saved copy used by Update/Recover/Reset, or only skipped by csnaps? We want to ignore regenerable folders (SDKs, virtual envs) but not lose Chrome profiles with logins. (2) Is there a public link to the known issue so we can follow it? We will report back the file count and host-main restarts after the cleanup.

Hi @Pablo_Statile,

No, .gitignore and .cursorignore only affect csnaps. The saved copy that Update, Recover and Reset restore from ignores both on purpose.

The saved copy has its own file for this: /workspace/.sandignore, using .gitignore syntax with paths relative to /workspace. It’s picked up on the next save, with no restart needed. Common regenerable folders are already skipped without it (node_modules, .venv and venv, build, dist, out, target, .cache and similar), so you’d mainly add your SDK folders. Anything listed there won’t come back after an Update or Reset, so only list what you can regenerate.

Your Chrome logins are safe either way. The browser profile lives in /home/box/chrome-profile, outside /workspace, and is saved separately. If you keep other browser profiles inside /workspace, make sure they aren’t under a folder like .cache or build, or add a line like !path/to/profile/ to .sandignore to keep one in.

There’s no public page for the memory issue. This thread is linked to it, so this is the best place to follow it, and your before and after numbers will help!

Hi Colin, thanks again. Here is our follow-up with numbers, and a few questions.

What we did since your last answer: we archived the duplicate translation copies (we no longer keep translations, only the latest production export per app plus one older compressed export), moved large task files into per-bot temporary folders deleted after 7 days, packed old backups into verified .tar.xz archives stored under /home/box/chrome-profile/archivo, moved Chrome profiles out of /workspace, listed regenerable folders in /workspace/.sandignore, and added a script that closes idle Chrome browsers after 30 minutes.

Numbers (same count method): /workspace went from about 252,700 files to about 61,900 files. Available RAM was 2.5 GB at 08:04 today (host-main had restarted around 07:24, and it has not restarted since), and it is 7.0 GB at about 09:15. On 10-26 host-main ran about 8 hours without restarting after a restart around 15:05, then restarted again early today. We will keep reporting.

Questions:

  1. After an Update, Recover or Reset, is /home/box/chrome-profile preserved completely, including subfolders we created ourselves (for example /home/box/chrome-profile/archivo)? And is /home/box outside chrome-profile preserved?
  2. What exactly is kept from /workspace when .sandignore is used, and how are symlinks handled?
  3. Is there a size or file-count limit for the saved copy that is backed up and restored?
  4. If an Update runs while the computer is busy (Chrome open, routines running), is anything interrupted or does it wait?
  5. Now that the file count is much lower, would you recommend doing an Update anyway, or is it not needed?

Hi @Pablo_Statile,

That matches what we see. The host hasn’t aborted since yesterday afternoon, and its memory peaks are about half what they were. The restart around 15:05 yesterday was an automatic update that kept your data.

  1. Yes, everything in /home/box/chrome-profile is saved, including your own folders like archivo. Only Chrome’s own cache and session folders are skipped (names like Cache, Code Cache, GPUCache, Sessions), so avoid those names. The rest of /home/box should be saved too, minus caches like .cache, .npm and Trash. The profile is saved less often than /workspace (when the computer is idle and right before an update), so /workspace is the quicker place for backups.
  2. Everything in /workspace except the built-in regenerable folders and your .sandignore lines. Symlinks come back as links and aren’t followed, so a target outside the saved folders isn’t kept. Empty folders aren’t kept.
  3. There’s no total size or file-count limit today. A file over 64 MB needs twice its size in free disk to be saved, otherwise it waits for a later save.
  4. Nothing queues. If a Bot is working, Settings offers Stop and Update, which stops it first. Running programs and open Chrome windows close, but files and logins stay. Automatic updates only run when the computer is idle.
  5. Not needed right now. Your computer already updated itself yesterday, and Settings will show if a newer version is ready.