Skip to content

Comments

Server: cleanup tmpclaude dirs when stopped#59

Merged
gabelul merged 1 commit intomasterfrom
feat/cleanup-tmpclaude
Jan 27, 2026
Merged

Server: cleanup tmpclaude dirs when stopped#59
gabelul merged 1 commit intomasterfrom
feat/cleanup-tmpclaude

Conversation

@gabelul
Copy link
Owner

@gabelul gabelul commented Jan 27, 2026

Adds a safe cleaner for Claude Code CLI scratch dirs (tmpclaude-*) in project roots.

  • Runs only when the agent is not running (after lock check, and after stop).
  • Best-effort: ignores failures (Windows locks).
  • Env knobs:
    • AUTOCODER_CLEAN_TMPCLAUDE=0 disables
    • AUTOCODER_TMPCLAUDE_MAX_AGE_S= only delete older dirs

Tests:

  • pytest -q

@gabelul gabelul merged commit b514380 into master Jan 27, 2026
3 checks passed
@gabelul gabelul deleted the feat/cleanup-tmpclaude branch January 27, 2026 10:13
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.

1 participant