pi-commandcode-provider icon indicating copy to clipboard operation
pi-commandcode-provider copied to clipboard

~/.pi/agent/ filling up with commandcode-models.json.*.tmp files

Open draxxris opened this issue 2 months ago • 1 comments

$ pwd && echo "----" && ls -1 *.tmp
~/.pi/agent
----
commandcode-models.json.245267.tmp
commandcode-models.json.245343.tmp
commandcode-models.json.298849.tmp
commandcode-models.json.298965.tmp
commandcode-models.json.299001.tmp
commandcode-models.json.300756.tmp
commandcode-models.json.300974.tmp
commandcode-models.json.301029.tmp
commandcode-models.json.301172.tmp
commandcode-models.json.301382.tmp

draxxris avatar Oct 01 '26 15:10 draxxris

Thanks for the report — confirmed the mechanism: the catalog refresh runs in the background (fire-and-forget), so quitting the host between the temp-file write and the rename leaves that .tmp behind with nothing cleaning it up on the next start. Opened #131 with a fix (unique temp name per attempt + sweep of temp files older than 1h on the next successful refresh).

pierreraby avatar Oct 01 '26 21:10 pierreraby