NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

Codex logging bug may write TBs to local SSDs

Share
NOW LET US Article – Codex logging bug may write TBs to local SSDs

A logging bug in Codex continuously writes massive amounts of data to local SQLite databases, potentially reaching 640 TB per year. This high write volume can quickly exhaust the write endurance (TBW) of consumer SSDs, destroying them in less than a year.

You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

Codex SQLite feedback logs can write ~640 TB/year and rapidly consume SSD endurance

Issue

Codex is continuously writing a large amount of data to the local SQLite feedback log database:

~/.codex/logs_2.sqlite

~/.codex/logs_2.sqlite-wal

~/.codex/logs_2.sqlite-shm

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.

Evidence

Current retained rows in logs_2.sqlite:

metric

value

retained rows

681,774

estimated retained log content

1,035.6 MiB

Level distribution:

level

estimated MiB

byte %

TRACE

732.5

70.7%

INFO

266.5

25.7%

DEBUG

30.6

3.0%

WARN

5.9

0.6%

Largest target+level pairs:

target

level

estimated MiB

codex_api::endpoint::responses_websocket

TRACE

527.4

codex_otel.log_only

INFO

141.2

codex_otel.trace_safe

INFO

121.2

log

TRACE

97.4

codex_client::transport

TRACE

60.1

codex_core::stream_events_utils

DEBUG

27.5

codex_api::sse::responses

TRACE

19.1

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.

Sanitized examples from the most frequent TRACE source: target=log

These are high-frequency retained samples. Raw websocket/SSE payload bodies are intentionally not included because they may contain private conversation content.

The dominant INFO sources are mostly repeated OpenTelemetry mirror events. IDs are redacted.

843x INFO codex_client::custom_ca: using system root certificates because no CA override environment variable was selected ... 334x INFO codex_otel.trace_safe: session_loop{thread_id=<redacted>}:submission_dispatch{otel.name="op.dispatch.user_input" submission.id=<redacted> codex.op="user_input"}:turn{otel.name="session"}

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – GLM 5.2 vs. Opus

dev-tools

GLM 5.2 vs. Opus

A head-to-head comparison between the new open-weights model GLM-5.2 and Claude Opus 4.8 in building a 3D platformer from scratch using raw WebGL.

NOW LET US Related – Deno Desktop

dev-tools

Deno Desktop

Deno Desktop, introduced in Deno v2.9.0 (canary), compiles Deno projects into self-contained desktop applications with small binaries and native performance.

NOW LET US Related – Sakana Fugu

dev-tools

Sakana Fugu

Fugu-Ultra, a new AI agent system, has demonstrated superior performance over leading frontier models across six complex real-world benchmarks. From autonomously optimizing GPT training recipes and decoding classical Japanese manuscripts to playing blindfold chess and stock trading, Fugu-Ultra showcases the immense potential of orchestrated AI agents.

NOW LET US Related – Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

dev-tools

Good results fine tuning a local LLM like Qwen 3:0.6B to categorize questions

A detailed guide on fine-tuning a tiny local LLM (Qwen 3:0.6B) to categorize household questions for metadata-aware RAG, boosting accuracy from 10% to 92% using Unsloth and opaque ID mapping.

NOW LET US Related – Did my old job only exist because of fraud?

dev-tools

Did my old job only exist because of fraud?

A software engineer reflects on a shocking realization that his early-career startup job, which relocated him to the US, might have only existed as a vehicle for a multi-million dollar venture capital fraud exposed by the SEC.

NOW LET US Related – Apertus – Open Foundation Model for Sovereign AI

dev-tools

Apertus – Open Foundation Model for Sovereign AI

Apertus has officially released Apertus Mini, a set of 16 small language models demonstrating advanced distillation and quantization techniques. Designed to meet EU AI Act requirements and support over 1,000 languages, Apertus aims to redefine open-source and sovereign AI.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.