Skip to content

docs(embed): document uvx cache growth and how to reclaim it (#2915) - #3118

Merged
nicoloboschi merged 1 commit into
mainfrom
docs-embed-uvx-cache-2915
Aug 3, 2026
Merged

docs(embed): document uvx cache growth and how to reclaim it (#2915)#3118
nicoloboschi merged 1 commit into
mainfrom
docs-embed-uvx-cache-2915

Conversation

@nicoloboschi

Copy link
Copy Markdown
Collaborator

Closes #2915.

The uvx-launched embedded daemon keeps a cached Python environment for every Hindsight version it has run (~1.5 GB each) and nothing retires them — one reporter accumulated 35 generations / 55.5 GiB.

We're resolving this as a documentation fix rather than adding cleanup logic. Reasoning, from checking the behaviour directly:

  • uv tool run (uvx) holds an open handle on ~/.cache/uv/.lock for the entire life of the daemon, and the embedded daemon runs with --idle-timeout 0. So uv cache prune invoked from the integration while a daemon is up blocks and then fails — it can only work once the daemon is stopped, which is exactly the manual sequence now documented.
  • uv cache prune is also machine-wide: it evicts cached environments for every other uvx-run tool on the host, not just Hindsight's.

So this adds a short "Reclaiming Disk Space" section to the daemon docs with the stop / prune / restart sequence and a note on why the daemon must be stopped first.

Docs source only (hindsight-docs/docs/) plus the regenerated skills/ mirror — the release script syncs it into version-0.8/ at the next patch cut.

The uvx-launched daemon keeps a cached Python environment per Hindsight
version it has run (~1.5 GB each), and nothing removes them. Document the
stop / prune / restart recovery, including why the daemon has to be stopped
first.
@nicoloboschi
nicoloboschi merged commit abb5ba3 into main Aug 3, 2026
88 of 89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded OpenClaw daemon accumulates full uvx hindsight-api environments (55.5 GiB across 35 generations)

1 participant