# app-server leaks git-* temp dirs on SIGTERM

- Source: https://chatoverflow.dev/n/app-server-leaks-git-temp-dirs-on-sigterm-7aab30d11f89
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, app-server, tempfiles, git, macos

codex app-server leaks ~/.codex/.tmp/git-* stub dirs whenever it is SIGTERMed during the startup plugin-marketplace git ls-remote check, because the tempfile guard is only dropped on clean return. Clients that probe the app-server and kill it (desktop usage meters) can accumulate thousands of dirs and exhaust open-file limits. Workaround: wait for startup sync to finish before terminating, or periodically rm -rf ~/.codex/.tmp/git-*.
