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
{{ message }}
Repository navigation
Windows Store Codex Git worker OOM: Please confirm the version with all-untracked-paths streaming budget and cache fixes #57449
changed the title [-]Windows Store Codex Git worker OOM:请确认 all-untracked-paths 流式预算和缓存修复版本[/-][+]Windows Store Codex Git worker OOM: Please confirm the version with all-untracked-paths streaming budget and cache fixes[/+]on Oct 27, 2026
Windows x64; Electron desktop entry point ChatGPT.exe; V8 15.6.75.19.
The information below comes from offline, read-only analysis of an existing local crash sample, a sample from a subsequent manual run, and packaged code from the same version. The two samples come from different PIDs and are not treated as consecutive measurements of the same heap.
Symptoms and limits of the evidence
The crash sample's internal timestamp is UTC 2026-10-27 09:33:22 / Beijing time 17:33:22. The sample contains V8 GC/OOM context, and attribution to the Git worker isolate is supported by active frames and structural validation. The final Windows native exception was 0xC0000374; this cannot identify where memory was first corrupted, and the inferred ordering of the native exception and V8 OOM is not presented as a fully proven root cause.
In the sample from the subsequent independent run, a live QueryCache entry retains an all-untracked-paths Query for an anonymized repository. state.data.result.paths contains 257,744 paths; the combined shallow size of arrays and strings reached by following type fields is 29,021,152 bytes. This is not dominator retainedSize and cannot be extrapolated to account for the original crashed process's entire approximately 3.9 GB memory usage.
At that point, the state was success/idle, isInvalidated=true, gcTime=Infinity, and the QueryObserver count was 0. Zero observers does not prove the absence of custom application consumers; the code contains explicit invalidation/removal mechanisms, so no claim is made that it is “never released.”
The single subsequent sample supports large input volume and cache pressure; an ongoing leak remains NOT_PROVEN. No session/turn ID is available to attribute the memory usage to a particular user chat.
Findings from reviewing the same version's code
The Git execution helper retains the full output by default; WQ decodes/pushes before invoking the budget callback.
R$ -> z$ reads status first, then expands untracked directories, splitting/filtering the complete NUL stdout into a path array; t1/n1 stores the all-untracked-paths result.
B0's maxUntrackedFiles check occurs after the complete path array has been produced; the 256 in review_model/review_search is not a scan input limit.
snapshot/staging consumers may require complete paths; budget-based truncation must not be disguised as complete success or an empty directory.
No supported user configuration entry point was found in the current version that could replace the production paths described above.
Confirmation needed from the vendor
Is there an official Windows Store build that fixes this Electron Git worker reading and caching chain? Please provide the exact MSIX/internal app versions and the corresponding commit or ticket.
Public openai/codex PR Bound concurrent Git diffs for untracked files #54032 is included in CLI 0.164.0, but it only changes per-diff concurrency in Rust git-utils and does not modify the JavaScript Query chain described above. Is there a separate corresponding desktop change?
Recommended changes to the production path include bounded incremental NUL parsing, byte/path/single-record budgets, bounded stderr, stopping retention after cancellation, shared-consumer semantics, a complete/partial/canceled/error contract, and an overall cache budget. Full snapshots must explicitly reject incomplete results; budget values need to be determined through stress testing.
Could the desktop team provide a supported, local-only way to collect allocation-stack or retained-reference evidence from a specifically identified V8 isolate in Windows Store Codex 26.1021.3705.0 / internal app 26.1021.31345?
Additional local observations:
A later preflight, run in ordinary non-administrator Windows PowerShell 5.1, verified the same desktop process and successfully read the TCP listener table. That process had no existing TCP listeners. No inspector was enabled or attached.
One observed whole-process PrivateBytes sequence was approximately 523 -> 1464 -> 586 MiB across three 15-second samples. This is not a measurement of V8 used heap. It does not establish that this particular transient peak came from Git, and an ongoing leak remains unproven.
No heap snapshot or allocation profile was collected for that transient peak.
Please clarify:
How to identify and select the Git worker isolate, separately from the main isolate and renderer VMs.
Whether this exact Store build exposes a supported allocation-sampling or heap-snapshot trigger that saves only to local disk, without enabling uploads, restarting the app, or editing project/app configuration.
Required OS/app permissions, expected pauses and memory overhead, supported stop/cancel behavior, and recommended duration/file limits.
For temporary allocations that are quickly reclaimed, whether the supported profiler can include already-collected samples.
If this build has no such entry point, please state that limitation and identify the least disruptive supported alternative. Please also identify an exact Store build/desktop change that addresses the all-untracked-paths collection/cache path, if available.
The bot's possible-duplicate links to #57417 and #56436 are useful comparisons, but we are not treating them as engineering confirmation of a shared cause.
This follow-up contains text only. Permission to send chats, project files, databases, full logs, memory dumps, credentials, or other raw local evidence is not granted.
Following up with concrete collector-ordering validation, a bounded repair proposal, and a production-preflight regression found during integration review. This adds implementation and test evidence to the existing report. This investigation has not established which retaining allocations or triggering operation caused its live incidents. The source proposal has not been installed or activated.
Affected component and source identity
Windows x64 desktop app package 26.1021.3705.0; embedded app 26.1021.31345, build 21828, production channel.
The incident run used non-default --js-flags=--max-old-space-size=3072 --heap-growing-percent=10. Independent numeric reads of historical worker generations verified 3072 MiB old-generation maximum / 3168 MiB reported limit. Native consumption of the growth flag was not established. This is not a failure claim about the default memory policy.
Incident scope
Seven generic worker JS heap-limit error/exit-1 pairs were observed across October 26-27, 2026 UTC while the same browser main survived. The error was ERR_WORKER_OUT_OF_MEMORY; it did not itself name Git. Independently queried OS thread descriptions and birth metadata correlate the named Git-thread replacement, together with process-private memory drops. This is not proof that the source defect below caused those incidents, identified a retaining object, or explains every report here.
Reproduced source defect: output is retained before the budget is checked
In this pinned worker, WQ decodes/appends each chunk, optionally copies it into the raw-output array, and only then invokes the callback where ve checks maxOutputBytes. The first overflow requests a child kill, but subsequent drained output is still decoded/appended until EOF. A child kill request is therefore not a strict collector allocation bound.
A finite, deliberately synthetic 32 MiB drain with a 2 MiB budget collected all 32 MiB under the original ordering. Checking the shared stdout/stderr budget before decoding or copying limited collected bytes to 2 MiB. The old isolated allocation lab observed allocated-heap increases of 70,194,520 bytes versus 4,412,216 bytes using Node 24.19 / V8 13.6. No forced GC was used; these are runtime-specific allocation deltas, not retained-live heap measurements or app measurements. The app uses V8 15.6. Actual Windows Git termination/drain behavior during the incidents was not measured.
This small standalone Node example demonstrates the ordering problem without running Git or importing the app. Its kill request is only a counter, deliberately modeling a finite stream that continues draining:
constassert=require('node:assert/strict');constMiB=1024*1024;constchunk=newUint8Array(MiB).fill(0x61);functioncollect(checkBeforeDecode){constdecoder=newTextDecoder();constpieces=[];letseen=0,retained=0,overflow=false,killRequests=0;functionaccept(){seen+=chunk.byteLength;if(seen>2*MiB&&!overflow){overflow=true;killRequests++;// No process is launched or killed.}return!overflow;}for(leti=0;i<32;i++){if(checkBeforeDecode&&!accept())continue;pieces.push(decoder.decode(chunk,{stream: true}));retained+=chunk.byteLength;if(!checkBeforeDecode)accept();}assert.equal(pieces.reduce((n,piece)=>n+piece.length,0),retained);return{retained, killRequests, overflow};}constoriginalOrdering=collect(false);constbudgetBeforeDecode=collect(true);assert.equal(originalOrdering.retained,32*MiB);assert.equal(budgetBeforeDecode.retained,2*MiB);assert.equal(originalOrdering.killRequests,1);assert.equal(budgetBeforeDecode.killRequests,1);console.log({originalOrdering, budgetBeforeDecode});
Repair proposal
Strict collector bound: move shared stdout/stderr byte accounting and overflow acceptance ahead of TextDecoder.decode, string append and raw-buffer copying. On overflow, request termination once and continue draining/discarding without collecting additional chunks. Preserve accepted raw callback ordering and reader-lock release. Preserve the limit-exceeded failure even if the child later reports exit code zero; never return truncated discovery as successful/clean.
Separate discovery policy: the four discovery callers V$, R$, z$, B$ lack explicit output-byte caps. The review candidate proposes 16 MiB combined stdout/stderr and a 60-second deadline. This threshold needs product review: legitimately large repositories can lose the affected feature until a successful read. It must remain failure/unknown, not a successful empty repository.
Preserve production preflight sharing: an earlier six-edit proposal added explicit timeoutMs:60000 to all four callers. That changes production preflight behavior: the generic runner passes timeoutMs != null to Pge, whose explicit-timeout path bypasses its cache/coalescing. Four concurrent synthetic calls produced four preflight config reads instead of baseline one. That earlier caller proposal should not be shipped unchanged.
The revised seven-edit candidate retains the collector repair and uses these caller options:
Caller
Proposed options added
Deadline behavior
V$, R$, z$
maxOutputBytes:16777216
Preserve their existing default 60-second deadlines and preflight sharing
B$
maxOutputBytes:16777216, defaultTimeoutMs:60000
Add a default deadline without setting the explicit-timeout flag
The one generic deadline fallback change is:
// Beforeb=Object.is(s,null) ? void0 : s??(y ? NQ : void0);// Review proposal: s is explicit timeoutMs; NQ is the existing 60s default.b=Object.is(s,null) ? void0 : s??r.defaultTimeoutMs??(y ? NQ : void0);
Explicit timeout precedence and explicit-null disabling are preserved. defaultTimeoutMs had no existing occurrences in this exact original worker. This is a proposed internal option, not an existing supported user setting. Revised full-source candidate SHA-256: 864d4f5bdf51ea97e9b175214b850274caa72ed2bb82588358a3e5d81b17589e; all seven edits reverse byte-exact to the original source. The full source bundle is intentionally not attached.
Validation and remaining limits
The original collector/caller/generic-transport suites passed 33 assertions, including shared stdout/stderr budgets, UTF-8 chunk boundaries, delayed EOF, raw callback compatibility, failure propagation and failing-original baselines. Those suites stubbed the production preflight path.
Eight additional extracted-production preflight integration checks, independently rerun, reproduce the old proposal's four-versus-one regression and confirm the revised candidate retains one shared preflight across two bursts, approximately 60-second command deadlines, explicit timeout/null behavior and synthetic timeout failure. These ran in Node 26.8.1 / V8 14.6 against a synthetic host, not the installed app.
These test scopes are separate; this is not a 41-assertion qualification of the complete revised worker. The full revised source was syntax-checked, not imported/executed. No real Git was used in the isolated tests.
The proposal bounds collected output per command, not total worker heap, transport queues, concurrency or caches. The separate turn-snapshot Git-add path remains uncapped/untimed. Static cache/tombstone hypotheses remain unmeasured.
No live repair was installed, no worker/main was intentionally restarted, and the seven incidents do not test this proposal. The original live retaining allocations remain unresolved.
Requested maintainer action: review the collector-ordering defect and the separate bounded-discovery policy, preserve preflight cache/coalescing, and deliver any accepted fix through a supported signed desktop release. Delivered-runtime tests and sustained representative-load verification are still required.
This submission contains manually sanitized findings, a synthetic reproduction and repair guidance only. No session share/link, raw logs, dump or memory content, full app bundle, repository/user paths, account data or private operational data is included.
Activity
[-]Windows Store Codex Git worker OOM:请确认 all-untracked-paths 流式预算和缓存修复版本[/-][+]Windows Store Codex Git worker OOM: Please confirm the version with all-untracked-paths streaming budget and cache fixes[/+]github-actions commentedon Oct 27, 2026
English translation:
Build
Symptoms and limits of the evidence
Findings from reviewing the same version's code
Confirmation needed from the vendor
Public references:
This report contains only an anonymized textual summary; no logs, dumps, or project files are attached.
github-actions commentedon Oct 27, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
javerson7-beep commentedon Oct 27, 2026
Could the desktop team provide a supported, local-only way to collect allocation-stack or retained-reference evidence from a specifically identified V8 isolate in Windows Store Codex 26.1021.3705.0 / internal app 26.1021.31345?
Additional local observations:
Please clarify:
The bot's possible-duplicate links to #57417 and #56436 are useful comparisons, but we are not treating them as engineering confirmation of a shared cause.
This follow-up contains text only. Permission to send chats, project files, databases, full logs, memory dumps, credentials, or other raw local evidence is not granted.
crowdpay commentedon Oct 27, 2026
Following up with concrete collector-ordering validation, a bounded repair proposal, and a production-preflight regression found during integration review. This adds implementation and test evidence to the existing report. This investigation has not established which retaining allocations or triggering operation caused its live incidents. The source proposal has not been installed or activated.
Affected component and source identity
26.1021.3705.0; embedded app26.1021.31345, build21828, production channel.156.0.8078.48, V815.6.75.19.fbc7dbcb1402ac10c7594d009ee0ef7303261d8ab67c49b9646accdd791f15f1.--js-flags=--max-old-space-size=3072 --heap-growing-percent=10. Independent numeric reads of historical worker generations verified 3072 MiB old-generation maximum / 3168 MiB reported limit. Native consumption of the growth flag was not established. This is not a failure claim about the default memory policy.Incident scope
Seven generic worker JS heap-limit error/exit-1 pairs were observed across October 26-27, 2026 UTC while the same browser main survived. The error was
ERR_WORKER_OUT_OF_MEMORY; it did not itself name Git. Independently queried OS thread descriptions and birth metadata correlate the named Git-thread replacement, together with process-private memory drops. This is not proof that the source defect below caused those incidents, identified a retaining object, or explains every report here.Reproduced source defect: output is retained before the budget is checked
In this pinned worker,
WQdecodes/appends each chunk, optionally copies it into the raw-output array, and only then invokes the callback wherevechecksmaxOutputBytes. The first overflow requests a child kill, but subsequent drained output is still decoded/appended until EOF. A child kill request is therefore not a strict collector allocation bound.A finite, deliberately synthetic 32 MiB drain with a 2 MiB budget collected all 32 MiB under the original ordering. Checking the shared stdout/stderr budget before decoding or copying limited collected bytes to 2 MiB. The old isolated allocation lab observed allocated-heap increases of 70,194,520 bytes versus 4,412,216 bytes using Node 24.19 / V8 13.6. No forced GC was used; these are runtime-specific allocation deltas, not retained-live heap measurements or app measurements. The app uses V8 15.6. Actual Windows Git termination/drain behavior during the incidents was not measured.
This small standalone Node example demonstrates the ordering problem without running Git or importing the app. Its kill request is only a counter, deliberately modeling a finite stream that continues draining:
Repair proposal
TextDecoder.decode, string append and raw-buffer copying. On overflow, request termination once and continue draining/discarding without collecting additional chunks. Preserve accepted raw callback ordering and reader-lock release. Preserve the limit-exceeded failure even if the child later reports exit code zero; never return truncated discovery as successful/clean.V$,R$,z$,B$lack explicit output-byte caps. The review candidate proposes 16 MiB combined stdout/stderr and a 60-second deadline. This threshold needs product review: legitimately large repositories can lose the affected feature until a successful read. It must remain failure/unknown, not a successful empty repository.timeoutMs:60000to all four callers. That changes production preflight behavior: the generic runner passestimeoutMs != nulltoPge, whose explicit-timeout path bypasses its cache/coalescing. Four concurrent synthetic calls produced four preflight config reads instead of baseline one. That earlier caller proposal should not be shipped unchanged.The revised seven-edit candidate retains the collector repair and uses these caller options:
V$,R$,z$maxOutputBytes:16777216B$maxOutputBytes:16777216, defaultTimeoutMs:60000The one generic deadline fallback change is:
Explicit timeout precedence and explicit-null disabling are preserved.
defaultTimeoutMshad no existing occurrences in this exact original worker. This is a proposed internal option, not an existing supported user setting. Revised full-source candidate SHA-256:864d4f5bdf51ea97e9b175214b850274caa72ed2bb82588358a3e5d81b17589e; all seven edits reverse byte-exact to the original source. The full source bundle is intentionally not attached.Validation and remaining limits
Requested maintainer action: review the collector-ordering defect and the separate bounded-discovery policy, preserve preflight cache/coalescing, and deliver any accepted fix through a supported signed desktop release. Delivered-runtime tests and sustained representative-load verification are still required.
This submission contains manually sanitized findings, a synthetic reproduction and repair guidance only. No session share/link, raw logs, dump or memory content, full app bundle, repository/user paths, account data or private operational data is included.