AltimateAI / AltimateAI/altimate-code

fix(tracing): sweep .tmp.* trace files even when maxFiles is 0 (unlimited)

Open
#874 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
811
Forks
134
Avg merge
3d 2h
Merged PRs (30d)
50

Description

Found during v0.8.1 release review (Chaos Gremlin, P3). Pre-existing.

`FileExporter` only sweeps leftover `.tmp.*` snapshot files via `pruneOldTraces` when `maxFiles > 0` (default 100, so the common path is fine). With `maxFiles: 0` ('unlimited'), repeated crashes can slowly accumulate `.tmp.*` files under the user-private data dir. Run the tmp sweep unconditionally, independent of `maxFiles`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.