published fresh until

Codex writes huge SQLite logs to my SSD: which version stops it?

Summary As of November 2026, Codex includes four further logging reductions beyond 0.142.0–0.143.0. Update to a build containing the additional changes listed in 0.145.0 and inspect the bundled CLI version, then measure writes

Not for Codex plan usage draining fast; see codex-usage-drains-faster-five-factors-march-2026

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of November 2026, the first logging reductions in 0.142.0–0.143.0 were followed by more in 0.145.0 (published 2026-07-21). Do first: update to a current build containing that later series, then measure disk activity; release notes do not establish a universal end to excessive writes.

The problem

In June 2026 the user 1996fanrui opened openai/codex#28224: Codex was continuously writing to ~/.codex/logs_2.sqlite and its -wal and -shm files. On their machine about 37 TB were written to the main SSD in roughly 21 days, which they extrapolated to about 640 TB a year. The issue is closed (2026-07-12). Commenters added reports of full disks and, in one case, an agent deleting files to free space. Treat the per-user numbers as self-reported.

The fix, and in which version

The reporter updated the issue text on 23 Jun 2026 with three merged changes by the contributor jif-oai. The release notes list the first three changes:

  • PR 29432 "Stop logging every Responses WebSocket event" (merged 2026-06-22), reported as released in 0.142.0.
  • PR 29457 "Filter noisy targets from persistent logs" (merged 2026-06-22), reported as released in 0.142.0.
  • PR 29599 "Stop persisting bridged log events" (merged 2026-06-23), reported as released in 0.143.0 (published 2026-07-08).

The reporter said the three together avoid about 85 percent of the logs in their own measurements. Later, 0.145.0 release notes list four more merged changes: #31789 stops persistent RMCP service traces, #31790 reduces MCP tool-list trace volume, #31791 filters routine Hyper logs from SQLite, and #31792 summarizes streamed-response item logs.

What is still unresolved

  • Right after 0.142.0, many commenters on macOS, Windows and WSL2 reported heavy writes continuing, one measuring about 10 MB per second on Ubuntu with 0.142.0. The contributor then released an alpha with a further patch and asked people to test it.
  • A commenter pointed out that the persisted log sink was still hard-coded to TRACE level and wrote a patch proposal; that is a commenter's proposal, not an accepted change. The later 0.145.0 changes filter or reduce several noisy sources; they do not promise zero disk writes.
  • The issue was closed on 2026-07-12 with the state reason 'completed'; its update text says the three merged changes avoid about 85 percent of logs on the reporter's machine. That does not tell you whether write volume is now low enough for you. Measure it.

What you can do

1. Update to a Codex build containing the additional logging changes listed in 0.145.0. For the desktop app or IDE extension, inspect the bundled CLI version too; July issue comments describe desktop builds still bundling an earlier alpha. 2. Watch the size of the log database and its WAL file under your Codex home folder, and check disk-write activity with your OS tools for a few minutes after sending a message. 3. Commenters shared an unofficial workaround that makes the log table ignore inserts, plus clean-up scripts and a third-party tool for collecting such tweaks. These edit Codex's own database or run unreviewed code and are not endorsed by the Codex team. Do not run them without reading them, and stop Codex first.

Caveat

Everything about sizes and rates comes from users' own machines. The only vendor-side facts are the merged pull requests and their dates.

Sources

Started from a post by @1996fanrui, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Codex writes huge SQLite logs to my SSD: which version stops it?
Summary: As of November 2026, Codex includes four further logging reductions beyond 0.142.0–0.143.0. Update to a build containing the additional changes listed in `0.145.0` and inspect the bundled CLI version, then measure writes
Copy for agent
get the whatworks thread codex-sqlite-feedback-log-ssd-wear and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codex-sqlite-feedback-log-ssd-wear
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks