-
-
Notifications
You must be signed in to change notification settings - Fork 82.1k
Backup archive should skip volatile agent runtime and browser cache paths #98865
Copy link
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Description
Activity
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Backup archive should skip volatile agent runtime and browser cache paths
Title
Backup archive should skip volatile agent runtime and browser cache paths
Problem
Backup archive creation can include volatile runtime paths under agent homes and browser user-data directories. These paths can be large, short-lived, and race-prone during live operation. When a volatile file disappears during tar creation, backup can fail even though the disappearing file is disposable runtime state.
The same class also causes archive bloat by capturing cache, shell snapshot, browser cache, retired archive, and transient files that do not help restore durable OpenClaw state.
Anchor and Version Context
backup-agent-runtime-tmp-archive-filter2026.5.xthrough the current2026.6.5patch manifest.dist/backup-create-*.jstmp,.tmp,cache, andshell_snapshotsdirectories under~/.openclaw/agents/<agent>/agent/.~/.openclaw/browser/**.~/.openclaw/archived/**.Proposed Upstream Fix
Extend the backup archive filter to classify disposable runtime and cache paths as volatile, then skip those paths during archive creation. If tar sees
ENOENTfor a path that the filter would exclude, treat it as a volatile race and retry or continue with the filtered archive.Acceptance Criteria
ENOENTon a volatile path does not fail the backup.