Commit 9d2812f
committed
fix(backup): skip delivery-queue json files from backup snapshots
Real-world run of `openclaw backup create` on v2026.5.7 reproduced an
ENOENT race on a delivery-queue entry:
Error: ENOENT: no such file or directory, lstat
'$STATE_DIR/delivery-queue/3fac5e46-...json'
Files under `{stateDir}/delivery-queue/**/*.json` are transient IPC
state for the messaging delivery queue: they are created and consumed
continuously and routinely vanish between tar's directory read and
`lstat()`. They have no restoration value — capturing a partial tail
only risks tar corruption without benefit.
Extends the volatile filter with the same `isUnder` + `hasExtension`
rule style as the existing sessions / cron-runs / logs rules, and
keeps the JSDoc rule list in sync.
Tests: 44/44 green across backup-volatile-filter + backup-create.
Built-by: Vulcan 🔨1 parent 053c118 commit 9d2812f
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
58 | 84 | | |
59 | 85 | | |
60 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
0 commit comments