Repository navigation
Description
App version
ChatGPT desktop / Codex local execution: 26.1013.40934, build 20770, production channel.
Bundle identifier: com.openai.codex.
The configured updater returned up_to_date on 2026-10-18. This only establishes that this installation had no eligible update at that check.
Subscription
Not included in this sanitized report; the observed failure concerns local background Git I/O.
Platform
macOS 27.2, build 26B5091g, Apple Silicon / arm64.
Application executable: /Applications/ChatGPT.app/Contents/MacOS/ChatGPT.
Git executable: /Library/Developer/CommandLineTools/usr/bin/git.
Summary and impact
Ordinary conversations in a large local workspace repeatedly triggered the desktop application's automatic Git turn-diff capture. It wrote large temporary pack files into the workspace's .git/objects/pack, failed, and repeated the work. Initial cleanup recovered 263,700,672,673 bytes (263.7 decimal GB, approximately 245.6 GiB) from 180 Git-confirmed temporary garbage files. The user reported only approximately 122 MB free at the critical point, and the app log independently records an actual Out of diskspace failure.
After cleanup, the problem immediately recurred: an empty pack directory grew to over 1.3 GB within approximately 30 seconds, and the observed temporary pack reached 1,984,949,831 bytes. The live writer was a Git process whose parent was the desktop app, rather than an assistant-issued shell Git command. Multiple chats sharing the same workspace triggered the capture path.
This report adds a current macOS incident, exact cleanup/regrowth evidence, a distinct nested-repository failure, and evidence that the available disable setting/control is not reliably usable. It is related to the previously reported resource-exhaustion class, not a claim that all existing reports share an identical root cause.
No project-file corruption has been established. Disk exhaustion itself endangered normal local work. Remote scheduler-managed research jobs were not stopped by the cleanup or investigation.
Observed triggering conditions / reproduction
These are repeated observations in the affected environment, not a fresh minimal synthetic reproduction:
- Use the desktop app with a broad local workspace containing multiple projects, large generated artifacts and backups, and an uninitialized nested Git repository.
- Use ordinary chats/file work; no request to stage or commit files is needed.
- The application starts
turn-diff-capture-startwithsource=turn_diff_analyticsand invokes Git with a temporary index. - Git writes objects/temporary packs in the workspace repository; the capture fails (including the nested repository error below).
- Another turn/chat retries the capture, producing further temporary packs.
- Removing stale temporary packs alone does not prevent rapid regrowth.
Please do not require recreating hundreds of GB of writes on the affected machine. Existing observations and sanitized evidence are retained.
Direct process attribution
The observed command was:
/Library/Developer/CommandLineTools/usr/bin/git
-c safe.bareRepository=explicit
-c core.hooksPath=/dev/null
-c core.fsmonitor=
add --sparse --pathspec-from-file=- --pathspec-file-nul
Example observed process relationships:
- Git PID 83769 wrote the pack that regrew after cleanup; its parent was desktop app PID 81067.
- A later verified snapshot Git PID 85483, also parented by 81067, was sent SIGTERM as targeted containment.
- The application and research/compute processes were not terminated.
A temporary index under a codex-index-* temporary directory was observed. Blocking the ordinary repository index alone would therefore not stop this path.
Disk evidence
The initial cleanup receipt records:
- First pass: 176 files / 259,627,226,107 bytes.
- Four recent/active candidates were deferred; a later safe pass removed 4 files / 4,073,446,566 bytes.
- Total: 180 files / 263,700,672,673 bytes, no deletion failures.
- Only stale, unopened files identified by Git as
tmp_pack_*garbage were removed. - Git reported zero finalized packs in this root repository at inspection; normal loose objects and snapshot refs were preserved.
Regrowth receipt, 2026-10-18 08:11:45 UTC+08:
pack file size: 1984949831 bytes
count: 7613
in-pack: 0
packs: 0
garbage: 1
size-garbage: 1938427
warning: garbage found: .git/objects/pack/tmp_pack_<redacted>
The exact byte size above is from filesystem stat; Git's size-garbage field is in its own reporting units.
A subsequent containment cleanup removed three newly produced closed temporary packs totaling 4,436,253,850 bytes. These are additional to the initial 263.7 GB cleanup, not a substitute measurement of it.
Sanitized log excerpts
Times in this section are UTC. Local incident times above are UTC+08. Private workspace paths, nested project names and incidental identifiers are redacted.
Actual disk-full failure:
2026-10-18T00:00:17.139Z
worker_rpc_response_error
method=turn-diff-capture-start
errorMessage="fatal: sha1 file '.git/objects/pack/tmp_pack_<redacted>' write error. Out of diskspace"
Failed to start turn diff analytics capture
Repeated nested-repository failure:
2026-10-18T00:07:53.514Z
worker_rpc_response_error
method=turn-diff-capture-start
errorMessage="error: '<nested-repository>/' does not have a commit checked out\nfatal: adding files failed"
Failed to start turn diff analytics capture
Even after the snapshot-only root repository metadata was quarantined, the trigger continued:
2026-10-18T00:43:15.740Z
cwd=<workspace-B>
requestKind=turn-diff-capture-start
source=turn_diff_analytics
subcommand=status
exitCode=128
success=false
2026-10-18T00:43:15.753Z
worker_rpc_response_error
method=turn-diff-capture-start
errorMessage="fatal: not a git repository (or any of the parent directories): .git"
Thus containment stopped the heavy writes, but did not establish that the application stopped invoking the capture trigger.
Disable configuration/control problem
The installed application registers the setting:
[desktop]
git-review-mode = "last-turn-only"The setting was persisted at approximately 08:17 UTC+08, but the running app still attempted capture at approximately 08:22:40 UTC+08. The user opened the command menu and searched for Git-based diffs; Disable Git-based diffs was not visible.
The setting was subsequently found absent again; the writer/removal cause is unknown. It was backed up and restored at approximately 08:46 UTC+08 as a restart-validation candidate. Do not interpret that unexplained config change as proof of an application overwrite bug.
Restart validation is still pending. The app has not been restarted for this latest setting test because active local execution would be interrupted. This report does not claim that a tested quit/relaunch failed on this Mac.
Read-only inspection of the installed bundle suggests:
- The analytics-capture start condition excludes the effective
last-turn-onlyreview mode. - The effective review mode only honors the configured value when internal feature gate 2333235660 is enabled; otherwise it resolves to
full. - The capture path also checks gate 586515394 and account conditions.
- Therefore a persisted setting is not sufficient evidence of the effective runtime mode. Actual live gate values were not obtained.
- The installed command exists in bundled code, but availability is gated.
- No evidence was found that
analytics.enabled=falsereliably prevents the local Git-writing capture itself; do not conflate disabling analytics transport with disabling file capture.
Relevant installed asset:
webview/assets/app-initial-90eb42395b7d.js
SHA-256:
2687d59e8c67ccf81c7efb3820211070df303c6a200c9e0e8d604f26253f2f5e
No application binary/ASAR was patched, no feature gates were overridden, and no global Git executable/configuration was replaced.
Mitigation already applied (not a recommended universal cleanup recipe)
- Removed only verified stale, unopened temporary Git garbage, retaining project files and normal objects.
- Temporarily made this specific pack directory non-writable and stopped only a positively identified snapshot Git child. This prevents writes but can also impede legitimate pack writes in that repository, so it is containment rather than a product fix.
- Verified that two affected root repositories had no HEAD commit, user branches/tags, tracked index entries or remotes; their refs were only under
refs/codex/turn-diffs/. - Moved those two roots' Git metadata into a preserved quarantine outside the workspaces, rather than deleting it. Nested legitimate repositories and project contents were left untouched.
- Confirmed no root
.gitrecreation and no snapshot add/pack writer in subsequent checks; logs still showed attempted capture returning not-a-repository. - Left server jobs, terminal-owned SSH connections, shared software and research data untouched.
This quarantine is specific to verified snapshot-only repositories. It must not be generalized to removing a user's real Git history.
Expected behavior / requested fixes
- Provide a durable, discoverable disable automatic Git snapshot/capture control independent of experimental feature gates, while retaining user-requested Git operations.
- Honor that control before dispatching the capture RPC or starting Git; disabled capture should not simply fail on every turn.
- Bound capture disk I/O and reject/skip oversized artifacts before writing Git objects.
- Isolate snapshot object storage from the user's repository and reclaim abandoned storage after errors/cancellation.
- Handle uninitialized nested repositories without repeated large writes and persistent retries.
- Add disk-space/backoff protection and serialize/deduplicate captures across chats sharing a workspace.
- Expose effective capture configuration and distinguish local capture from analytics sending.
- Provide a safe diagnostic/cleanup path that preserves legitimate history and active processes.
Related upstream reports
- Codex.app repeatedly runs git add -A without user request, filling .git/objects/pack #28750: earlier macOS repeated automatic staging / temporary-pack accumulation.
- [Windows] Canceled turn-diff captures leave over 774 GiB of tmp_pack_* files in the repository #50920: Windows canceled turn-diff captures with very large temporary-pack accumulation.
- [Windows][Desktop 26.803.5235.0] Git review cancellation spams Electron "Error: write EOF"; disable toggle is hidden #38062: Windows Git-review failure with hidden disable toggle.
- [Windows Desktop] Automatic turn-diff capture intermittently cancels fast Git commands with stale snapshot error #53874: turn-diff capture failures and a reported setting/restart limitation on Windows.
These links are related context; their symptoms and platforms are not assumed identical to this case.
Evidence and privacy
This report was prepared and submitted at the affected user's explicit request. Counts, process attribution, redacted error text and settings observations were checked against locally retained receipts/logs. Original logs, full session transcripts, filesystem inventories, usernames, private project paths, credentials, remote-host/account details and research datasets are not attached or published. Exact local evidence remains available for a suitably private support follow-up.
Activity
abhinav-nigam commentedon Oct 25, 2026
Adding an independent incident on the same desktop build, with per-file evidence linking the abandoned packs to canceled turn-diff captures.
Environment and scope
com.openai.codex.New evidence: all 28 pack timestamps match cancellations
The repository contained 28 abandoned
.git/objects/pack/tmp_pack_*files occupying 66,224,242,688 allocated bytes (66.224 decimal GB).For every one of the 28 files, its final modification timestamp matches a canceled desktop
git addcompletion for this repository within 9.608 ms. Examples (UTC; identifiers below are only sample labels):Retained logs contain 92 canceled turn-diff
addwarning events for this repository during that period. This is a count of observed cancellation events, not the total number of capture attempts.Representative sanitized event, with incidental identifiers omitted:
Other matched events also include
turn-diff-capture-complete. These observations strongly attribute this batch to canceled desktop change capture. They do not establish why each request was canceled, or support blaming ordinarygit gc.Workload and implementation observation
At investigation time, the repository had 58,761 nonignored untracked files totaling about 20.8 GB, including a roughly 5.3 GB compressed archive. This is a current inventory, not a reconstruction of every historical capture's input.
Read-only inspection of the installed desktop worker shows a temporary Git index for turn-diff tree construction, while object writes use the repository's shared object store. Removing the temporary index directory therefore does not remove abandoned packs there. The output-diff size limit occurs after tree construction and does not prevent expensive input ingestion.
This is evidence from the affected installation, not a fresh minimal desktop reproduction. No app binary, feature gate, Git executable or Git configuration was modified.
Cleanup verification
Git identified the 28 files as garbage. Before removal, they were unchanged, had no open handles, and no Git operation was active. Only the audited files were removed:
This was a specific audited cleanup, not a recommendation to glob-delete temporary files in a live repository.
Proposed fix and regression coverage
A candidate design for maintainers:
Regression cases should cover cancellation after temporary-pack creation, nonzero exit after object writes, a simultaneous legitimate Git writer, linked worktrees, and successful checkpoint reads. Failed captures should leave neither shared-store growth nor orphaned private storage. Broad age-based deletion in the shared object directory would risk unrelated Git operations.
This is a proposed design, not an implemented or tested product patch. Related reports: #19588 and #50920.
Private paths, project names, transcripts and raw pack contents are intentionally excluded. The counts, correlation table and preservation results were checked against retained local receipts.
gary23w commentedon Oct 29, 2026
SOLVED:
Windows reproduction, same mechanism, with the responsible functions located in the installed bundle.
Version / platform. Codex App 26.1023.6621.0 (MSIX OpenAI.Codex_26.1023.6621.0_x64), Windows 11 Home 26300, Git for Windows 2.52.0. Subscription: ChatGPT (forced_login_method=chatgpt).
What happened. Opening one thread in a folder that held a .git plus ~194k files (copies of several projects, no .gitignore) made the app write 25,605 loose objects / 605 MB into .git/objects within about three minutes of the thread opening, before the agent ran a single command (the session log for that thread has one turn and zero exec calls). Largest blobs were 40 to 90 MB binaries. The checkpoint ref written under refs/codex/turn-diffs/checkpoints//// points at an object that does not exist, so the capture was abandoned mid-write and the objects were left behind. Nothing ever packs or prunes them: git gc is never invoked, and in this case git can no longer open the directory at all (HEAD is gone; cause unknown).
Across the other workspaces this account uses, the same feature has left 313 MB, 211 MB and 116 MB of loose objects (6,505 objects and 83 checkpoint refs in one repo). Two of those are now above the app's own 200 MB object-store limit, so worktree snapshots there will fail with "Repository is too large".
Where it is in the bundle (resources/app.asar, node-side chunk; minified names as shipped):
Capture handler ESe (RPC turn-diff-capture-start) → C4 → bSe: runs status --untracked-files=normal, then 0 stages every untracked path with git add --sparse --pathspec-from-file=- --pathspec-file-nul into a temp index (codex-index-*) and runs write-tree. There is no cap on file count, bytes, or per-file size on this path. In a repo with no ignore file that is the whole tree.
The only size guard, Cve(e, Ige) with Ige = 209715200, reads git count-objects -v (size + size-pack), i.e. it measures the object store that previous captures produced, not the tree about to be hashed, and it is only called on the worktree-snapshot path, not the capture path. A fresh store always passes.
Checkpoint refs are expired after D4 = 7 * 864e5 ms, but no gc/repack ever runs, so expired checkpoints become unreachable loose objects that stay on disk indefinitely.
Disable path: oBt(e, t) => t ? e : "full" with t = e(z, "2333235660") || checkGate("2333235660") === true. So [desktop] git-review-mode = "last-turn-only" (the "Disable Git-based diffs" setting, settings.git.reviewMode.*) is a no-op unless that gate is on for the account. Confirmed here: ~/.codex/config.toml already contained [desktop] git-review-mode = "last-turn-only" (file last modified at app start, before the thread was opened), and the 605 MB capture ran regardless.
Separately, every git read query is a TanStack query with staleTime: 250, gcTime: 250 and a per-repo generation counter that is bumped on every watcher event and mutation. Measured on a 1,300-file worktree: 13 git invocations per 20 s while idle, each spawning a cmd wrapper, the real git.exe and a conhost. Over a 90 s sample: 31 git launches and 40 conhost launches.
Observed git command line (parent: the app's node.mojom.NodeService utility process):
git -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor= add --sparse --pathspec-from-file=- --pathspec-file-nul
Note on the public repo. None of this is in openai/codex: the open-source ghost-snapshot path is retired (GhostSnapshotToml fields are documented as legacy no-ops and GhostSnapshotConfig says snapshots are no longer produced), and git-utils/src/baseline.rs is the separate memory baseline, already capped per file. So this cannot be fixed by an outside PR; it needs a change in the app bundle.
Suggested fixes, in order of impact.
Bound the capture: skip or truncate when the untracked set exceeds a count or byte budget (the memory-baseline path in codex-rs already has MAX_BASELINE_FILE_BYTES = 10 MiB; the app capture has nothing equivalent), and never stage paths that are not under a .gitignore-governed tree without a cap.
Measure the right thing in the guard: estimate the tree to be hashed (or the untracked byte total), not count-objects of the store.
Clean up: run git gc --auto (or repack/prune of refs/codex/* leftovers) after captures, and delete the partial objects of an aborted capture.
Make "Disable Git-based diffs" available without the feature gate, and honour it live.
Raise staleTime for status/ls-files/diff queries well above 250 ms and spawn git detached (no console host) on Windows.
Happy to provide the sanitized sampler and timing data on request.
gary23w commentedon Oct 29, 2026
Reference implementation of a
codex doctorcheck that surfaces this: gary23w@5a43fa7 (branchdoctor-git-object-store, one commit, three files).It inspects the working repository's object store from the filesystem without executing git, following
.gitfiles andcommondirfor linked worktrees, and reports loose objects, pack files, leftovertmp_obj_*/tmp_pack_*files, the number ofrefs/codex/*refs (loose and packed), and whether the repository is registered forgit maintenance. It warns past git'sgc.autodefault (6,700 loose objects) or 200 MiB, with remedies pointing atgit maintenance register/startor a one-offgit gc. Unit tests cover the stat collection, worktree resolution, config matching and both report states.Pull requests here are limited to collaborators, so I cannot open one; the branch is there for anyone on the team to pull from.
sloaiza86 commentedon Oct 30, 2026
Adding a further macOS incident on a newer desktop build, observed on 2026-10-30, with per-file correlation between abandoned packs and failed automatic captures.
Environment
com.openai.codex(read from the installed app's Info.plist)..gitignoreor ordinary.git/index; 13 existing refs were underrefs/codex/turn-diffs/checkpoints/./Applications/Xcode.app/Contents/Developer/usr/bin/git. A process inspection linked the active Git child to the desktop application's Codex Service, andlsofshowed that child writing the newest temporary pack.Storage growth and timestamp correlation
Initial inspection found 79
tmp_pack_*files totaling 134,383,842,879 bytes, plus one finalized pack of 11,590,132,683 bytes. Another temporary pack appeared during the investigation and grew to 2,621,833,228 bytes.The final cleanup inventory contained 80 abandoned temporary packs totaling 137,005,676,107 logical bytes (137.0 decimal GB), with 137,006,002,176 allocated bytes.
All 80 files' final modification times match failed automatic turn-diff
git addcompletion events within 9.186 ms: 78 cancellations and 2 nonzero exits. Representative events:Sanitized final cancellation:
Two milliseconds later, the main application log recorded:
Earlier logs also recorded actual
No space left on devicefailures while creating acodex-index-*temporary directory. At an inspection point, only approximately 10.8 GB was free.Triggering data and evidence limits
The workspace included an existing 8.896 GB ZIP, 3.670 GB JSONL log and 2.307 GB MP4. Pack-object declared sizes and decompressed 64 KiB prefixes matched these files. Among the initial 79 temporary packs, 77 began with the ZIP's content, one with the JSONL, and one with the MP4. These are size/prefix matches, not full-file hash comparisons.
This is evidence from repeated operations in the affected workspace, not a fresh minimal synthetic reproduction. No large artificial workload was created. The logs and process evidence identify desktop turn-diff capture; they do not establish the reason for every historical cancellation or an independent Git defect.
Mitigation and verification
.gitignorerules for the offending raw-artifact bundles and logs..gitignoreand the task folder while excluding the three large paths. A subsequent inspection still found zero temporary packs.The ignore rules mitigate this input set, not the general unbounded-capture problem. The installed "Disable Git-based diffs" control was not enabled or runtime-tested in this incident.
Please provide bounded capture I/O, safe cleanup of capture-owned temporary objects after cancellation/failure, and a reliable per-workspace disable control that does not depend on artifact names.
Private workspace paths, project names, account identifiers, conversation transcripts and raw file contents are omitted. Local inventory, cleanup and correlation receipts are retained.
Kaizah360 commentedon Nov 9, 2026
Additional macOS incident observed November 9, 2026, submitted with the affected user’s authorization.
Impact: A local workspace accumulated 393 abandoned
tmp_pack_*files totaling 671.22 GiB (approximately 721 GB). The data volume reached 99% full. These files dated November 1–9; many were around 2 GB. App build was not verified for this incident; macOS version is 27.2.Direct evidence: Desktop logs identify
source=turn_diff_analytics,requestKind=turn-diff-capture-start, and automatic bulk Git add operations:Two capture failures explicitly name temporary pack files and report:
A bounded review of November 8–9 logs found 17 canceled bulk-add capture calls and 19 other failed/warning bulk-add calls. Canceled captures report
failureReason=canceledand no exit code. Logs also show nested-repository warnings.Attribution limits: Two abandoned files are directly linked to these capture errors. Repeated capture attempts plausibly explain the larger accumulation, but the origin of all 393 files is not individually proven. We have not established why earlier operations were canceled, which file classes were captured, or a deterministic minimal reproduction. No custom Git gc/maintenance/pack configuration was found.
Recovery: After confirming no Git writer or open pack handle, only the 393 inventoried inactive temporary files were removed. Git connectivity checks passed before and after. All 68,505 other inventoried Git file entries retained their sizes, modification times and inode identities. Source, private saved data, ordinary Git objects and refs were not deleted. Approximately 681 GiB became available immediately after cleanup. This is recovery, not proof of a permanent fix; no preventive setting was changed.
Please investigate cleanup on capture cancellation/failure, bounded storage usage, retry/backoff behavior, and a supported way to disable this automatic capture without disabling normal Git work. We would prefer not to reproduce hundreds of GiB of writes again.
Privacy: This comment deliberately excludes usernames, machine names, project/repository names, absolute paths, account details, session identifiers, raw logs, source code and datasets. The local investigation is retained privately. No hardware failure was established.
Treatid2 commentedon Nov 10, 2026
I posted Windows evidence for the same automatic capture path on #20933. The Disable Git-based diffs control was also absent from Settings → Git in the affected session. The follow-up asks for an app-wide opt-out that prevents capture before Git launches, independent of rollout eligibility. Main follow-up: #20933 (comment)
rmjarvis commentedon Nov 16, 2026
Still occurring on macOS with Codex desktop 26.1111.21308, observed November 16, 2026, in an established code repository.
The disable control is also inaccessible: “Disable Git-based diffs” appears in Settings search, but selecting it opens the Git settings page without a corresponding control. Searching the command palette does not show the action either.