Codex logging bug may write TBs to local SSDs
Codex is continuously writing a large amount of data to the local SQLite feedback log database:
On my machine, after about 21 days of uptime , the main SSD has written about 37 TB . Process/file-level checks show Codex SQLite logs are the main continuous writer.
That extrapolates to roughly 640 TB/year . On a 1 TB SSD , that is about 640 full-drive writes per year . Some consumer SSDs are rated around 600 TBW , so this could consume roughly a full drive's warranted write endurance in less than a year.
Current retained rows in logs_2.sqlite :
The top sources are mostly global TRACE logs, mirrored telemetry logs, and raw websocket/SSE payload logging. TRACE alone is about 70.7% of retained bytes. codex_otel.log_only + codex_otel.trace_safe add another 25.3% . Filtering these categories should remove roughly 96% of retained log bytes in this sample without fully disabling feedback logs.
These are high-frequency retained samples. Raw websocket/SSE payload bodies are intentionally not included because they may contain private conversation content.