Codex leaves marketplace-upgrade staging directories under ~/.codex/.tmp
Codex CLI/Desktop appears to leave marketplace staging directories behind under:\n\n~/.codex/.tmp/marketplaces/.staging/marketplace-upgrade-*\n\nObserved repeatedly across daily checks. Current check result:\n\n``text\ncodex-cli 0.142.5\nWARN: 103 marketplace-upgrade staging directories\nlatest: marketplace-upgrade-L95QzZ\nlatest_mtime: 2026-07-01T10:40:13+09:00\nsample_item_counts: 882, 882, 882, 882, 882\nestimated_total_items: 90846\n``\n\nThe latest staging directory is fresh, so marketplace sync appears active, but old marketplace-upgrade- directories are not being cleaned up durably. This recurs after prior cleanup/OK states.\n\nExpected behavior: completed/obsolete marketplace-upgrade- staging directories should be cleaned automatically, or Codex should provide a safe cleanup mechanism.\n\nActual behavior: the directories accumulate until local monitoring reports WARN/CRITICAL-level bloat.\n\nSafety note: I have not deleted anything automatically; cleanup appears unsafe while Codex App/CLI may be running.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗