[Windows] File path breadcrumb flickers continuously at certain window widths
What version of the Codex App are you using (From “About Codex” dialog)?
Codex Desktop 26.1117.31558 (bundled app version), Windows MSIX package OpenAI.Codex 26.1117.3838.0.
What subscription do you have?
Pro 100$
What platform is your computer?
Windows 10 Pro. PowerShell output: Microsoft Windows NT 10.0.19045.0 x64.
What issue are you seeing?
After latest updating Codex Desktop, I noticed that opening some local Markdown files from links in chat makes the file path bar flicker continuously, roughly 5–10 times per second. The flicker persists while the window is idle. I reproduced it in two local projects.
With the same file tab open, narrowing the window until more of the path is truncated stops the flicker. Restoring the previous width starts it again. Switching to View source and restarting the app did not resolve it.
Video: https://github.com/user-attachments/assets/a4e2e5b6-dc9e-42ce-9612-16c9ca421622
What steps can reproduce the bug?
- Save the attached
codex-repro-b.mdasdocs/plans/codex-repro-b.mdin any local workspace. - Open that workspace in Codex Desktop. Ask Codex to reply with a clickable link to
docs/plans/codex-repro-b.md, then click the link to open the built-in file viewer. - Adjust the window width until the file path bar flickers. Release the window edge and observe that the flicker continues.
- Without closing the tab, make the window narrower until the path is truncated further and the flicker stops.
- Restore the width from step 3. The flicker starts again.
Attached file: codex-repro-b.md
What is the expected behavior?
At any fixed window width, the path bar should settle on a stable display. If the path needs to be truncated, it should stay truncated until the available space changes.
Additional information
The attached file contains 44,875 bytes of plain text with no Markdown formatting. A 73-byte version at the same path was stable at the tested width. Some longer filenames were stable as well.
The file path component uses ResizeObserver to decide which path segments fit. The repeatable stop and resume when resizing suggests a possible layout feedback loop around a truncation threshold. The exact width and root cause are still unconfirmed.
I can reproduce this on Windows 10 Pro x64 (OS build 19045) with Codex Desktop 26.1117.31558 and MSIX package 26.1117.3838.0.
In the split view, with the same local file tab open, dragging the divider to make the file pane narrower stops the flicker. Widening the file pane brings it back. The specific element that repeatedly appears and disappears is the leading truncation ellipsis (…) in the file path breadcrumb. I saw it across multiple local file tabs, including files other than Markdown, so the reproduction is broader than Markdown preview.
During the width comparison, the main renderer logged repeated instances of ResizeObserver loop completed with undelivered notifications. One burst occurred at 09:56:04–09:56:06 UTC on November 20.
One lead from inspecting this build: the file toolbar switches some file controls from a compact menu to inline buttons at a container width of 625 CSS px. The breadcrumb separately observes its available width to decide whether to render the leading ellipsis. The toolbar breakpoint is a useful place to investigate, though I did not measure the exact pane width at which flickering started or tie the warning to a specific observer. Keeping the file pane narrower works around it on this machine.
I can reproduce this on an image (.png) preview in a local workspace on the same build (26.1117.31558, MSIX 26.1117.3838.0), even with >400 px of empty space left in the file header—so it is independent of file type (Markdown/ZIP/Excel/image), remote vs. local workspaces, and the 625 px toolbar breakpoint.
Environment
- OS: Windows 11 Pro 25H2 (
Microsoft Windows NT 10.0.26200.0 x64) - Display scaling: 150% (
144 DPI,devicePixelRatio = 1.5) - Codex Desktop:
26.1117.31558(build29513), MSIX26.1117.3838.0
Root Cause (3 compounding bugs in the breadcrumb component)
Inspecting the file-path breadcrumb ResizeObserver logic (webview/assets/async/911644.2b086ab057.js, module Aa0N), the oscillation is caused by three things interacting together:
-
Zero-tolerance float comparison on a shrink-wrapped
<nav>under fractional DPI (e.g. Windows 150%)- Although the header slot wrapper has
flex-1, the inner<nav>does not havew-full/flex-1, so when there is spare horizontal space it shrink-wraps to its own content width (max(measurerWidth, pillWidth)). - That puts the computed available width
a = nav.width - (pill.width - ol.width)right on the boundary ofsum = s.reduce((x, y) => x + y, 0). - At
devicePixelRatio = 1.5(unlike1.0or macOS Retina2.0),1 / 1.5is a repeating binary fraction; Chromium'sgetBoundingClientRect().widthrounding can makeasmaller thansumby ~1e-5 px(e.g.a - sum = -0.000011 px). - Because
a < sumhas no subpixel epsilon tolerance, it falsely enters the overflow branch even when hundreds of pixels are free.
- Although the header slot wrapper has
-
showRoot(… /) is computed before the segment-restorationforlooplet c = a < sum ? s.length - 1 : 0; let p = a - u - o; // u = last segment width, o = width("… /") let h = c > 0 && p >= 0; // <-- locked to `true` BEFORE the loop! for (; c > 0 && p >= Math.min(s[c - 1], o + l); ) { c -= 1; p -= s[c]; }- When
a < sumfalsely triggers,cstarts ats.length - 1andh(showRoot) immediately becomestrue. - The
forloop then restores segments all the way back toc = 0(whenever the first segment is wide enough thats[0] - o >= o + l, ~59 CSS px), leaving zero segments hidden, yethis never re-checked forc > 0. - This renders the invalid state
{ first: 0, showRoot: true }— prepending a bogus… /in front of the complete path.
- When
-
ResizeObserverfeedback loop- Rendering the extra
… /expands<ol>, the pill, and the shrink-wrapped<nav>by+width("… /")(~24 CSS px). ResizeObserverfires on the next frame; nowa ≈ sum + 24px >= sum, soa < sumbecomesfalseand state resets to{ first: 0, showRoot: false }.- Removing
… /shrinks<nav>back down,ResizeObserverfires again,a - sumdrops back to-0.000011 px, and the loop repeats every frame (emittingResizeObserver loop completed with undelivered notifications).
- Rendering the extra
This also explains all observed quirks across #62669, #62751, and #62762:
- Why Windows and not macOS:
DPR = 1andDPR = 2producea - sum === 0; fractional Windows scaling (1.5, etc.) produces small negative residuals. - Why only certain paths flicker: depends on both the sign of the subpixel rounding residual (
a - sum < 0) and whethers[0] >= 2*o + lso the loop decrementscall the way back to0(ifs[0]is very short, e.g.repo, it instead gets stuck permanently hidings[0]withfirst = 1). - Why narrowing stops it while widening does not: widening leaves
<nav>shrink-wrapped to its content; narrowing eventually constrains<nav>sofirst >= 1stays stable.
Standalone Chromium Repro
Verified with Chromium (msedge --headless --force-device-scale-factor=<dpr> --virtual-time-budget=1200 --dump-dom):
DPR = 1.0:a - sum = 0.000000→ stable (first=0, showRoot=false)DPR = 2.0:a - sum = 0.000000→ stable (first=0, showRoot=false)DPR = 1.5:step=1 dpr=1.5 a-sum=-0.000011 -> first=0 showRoot=true step=2 dpr=1.5 a-sum=23.729176 -> first=0 showRoot=false step=3 dpr=1.5 a-sum=-0.000011 -> first=0 showRoot=true step=4 dpr=1.5 a-sum=23.729176 -> first=0 showRoot=false
Minimal standalone HTML reproduction (open at 150% DPI or with --force-device-scale-factor=1.5)
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<style>
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 14px "Segoe UI", sans-serif; }
header { display: flex; width: 1000px; padding: 8px; }
.slot { display: flex; flex: 1 1 0%; min-width: 0; }
nav { display: grid; max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); white-space: nowrap; }
.measurer { visibility: hidden; position: relative; grid-area: 1/1; display: flex; height: 0; width: max-content; max-width: 100%; overflow: hidden; }
.seg { display: flex; flex-shrink: 0; }
.sep::after { content: '/'; margin: 0 4px; flex-shrink: 0; }
.bold { font-weight: 500; }
.ell-sep { position: absolute; display: flex; }
.ell-bold { position: absolute; font-weight: 500; }
.pill { grid-area: 1/1; display: flex; max-width: 100%; min-width: 0; align-items: center; justify-self: start; padding: 2px; border: 1px solid #ddd; border-radius: 999px; }
.inner { display: flex; min-width: 0; align-items: center; overflow: hidden; padding-inline: 8px 4px; }
ol { list-style: none; margin: 0; padding: 0; display: flex; min-width: 0; align-items: center; overflow: hidden; }
ol:only-child { margin-inline-end: 4px; }
li { display: flex; min-width: 0; align-items: center; }
li.shrink-0 { flex-shrink: 0; }
li.root-ell { flex-shrink: 0; }
li.root-ell::before { content: '\2026'; }
</style>
</head>
<body>
<header>
<div class="slot">
<nav id="nav">
<div class="measurer" id="ee">
<span class="seg sep">workspace</span>
<span class="seg sep">project-alpha</span>
<span class="seg sep">outputs</span>
<span class="seg bold">preview-round-06.png</span>
<span class="ell-sep">…</span>
<span class="ell-bold">…</span>
</div>
<div class="pill" id="et"><div class="inner"><ol id="en"></ol></div></div>
</nav>
</div>
</header>
<pre id="log"></pre>
<script>
const Z = ["workspace", "project-alpha", "outputs", "preview-round-06.png"];
const [ee, et, en, nav, log] = ["ee", "et", "en", "nav", "log"].map(id => document.getElementById(id));
let state = { first: 0, showRoot: false, empty: false }, step = 0, lines = [];
function render() {
en.innerHTML = (state.showRoot ? '<li class="root-ell sep"></li>' : '') +
Z.slice(state.first).map((seg, idx) => {
const i = state.first + idx, last = i === Z.length - 1;
return `<li class="${idx > 0 ? 'shrink-0 ' : ''}${last ? 'bold' : 'sep'}">${seg}</li>`;
}).join('');
}
render();
function measure() {
if (step >= 6) return;
step++;
const i = et.getBoundingClientRect().width - en.getBoundingClientRect().width;
const a = nav.getBoundingClientRect().width - i;
const s = Array.from(ee.children, el => el.getBoundingClientRect().width);
const [o, l] = s.splice(-2), u = s.at(-1) ?? 0, sum = s.reduce((x, y) => x + y, 0);
const d = a < Math.min(u, l);
let c = a < sum ? s.length - 1 : 0, p = a - u - o;
const h = c > 0 && p >= 0; // computed BEFORE the for loop
for (; c > 0 && p >= Math.min(s[c - 1], o + l); ) { c -= 1; p -= s[c]; }
const f = `${i / (ee.currentCSSZoom || 1)}px`;
if (ee.style.paddingInlineEnd !== f) ee.style.paddingInlineEnd = f;
lines.push(`step=${step} dpr=${devicePixelRatio} a-sum=${(a - sum).toFixed(6)} -> first=${c} showRoot=${h}`);
log.textContent = lines.join('\n');
if (state.first !== c || state.showRoot !== h || state.empty !== d) {
state = { first: c, showRoot: h, empty: d };
render();
}
}
measure();
const ro = new ResizeObserver(measure);
for (const el of [nav, et, en, ...ee.children]) ro.observe(el);
</script>
</body>
</html>
Suggested Fixes
- Compute
showRootafter theforloop (only show… /when the finalfirst > 0). - Add a subpixel epsilon tolerance to the overflow check (e.g.
a + 0.5 < sum) so floating-point rounding under fractional DPI never falsely triggers truncation. - Add
w-full(orflex-1) to<nav>so it measures the actual available header width rather than shrink-wrapping to its own pill width.
Workarounds
- Change the Electron zoom level (
Ctrl+-/Ctrl++) so the effective scale factor avoids the negative rounding residual, or - Narrow the preview pane enough that the first segment is genuinely truncated (
first >= 1).
Additional user-reported case on Windows desktop: the breadcrumb flickers in Codex’s built-in preview after opening a local PNG from a file link in chat. The affected element is the path chip above the image. The PNG itself was verified to be static. Expected behavior: the breadcrumb stays stable while viewing the image. The window-width dependency has not been verified for this case.
I have this same issue
I reproduced this in a local Windows workspace on Codex Desktop 26.1117.41037 (MSIX 26.1117.4957.0), Windows 11 Pro 26H2 x64, OS build 26300.9974.
With the same right-hand preview pane width, I compared two Markdown files in the same directory. The chat links used paths relative to the workspace.
| File | Open from file tree | Open from chat link |
|---|---|---|
VERSIONS.md |
Flickers | Flickers |
DATABASE.md |
Stable | Stable |
Both filenames have the same character count. On the affected file, the leading … / appears and disappears while the remaining directory names and filename shift horizontally. The selected tab and rendered document stay stable. Holding the pointer over the path chip shows the same workspace-relative path throughout, even as the chip continues to flicker. I could still reproduce after making the pane wider and narrower.
The main-window log also contains repeated ResizeObserver loop completed with undelivered notifications messages. Those entries do not identify a component. The two-file comparison above provides a stable control for checking a fix.
The same breadcrumb flicker also occurs with a local PDF in the built-in file preview. Windows x64 reports OS build 10.0.26200.0; the installed Codex MSIX package is 26.1117.4957.0.
I opened a PDF from a file link in a local Codex chat. With the same PDF tab selected and the panel width unchanged, the leading … / repeatedly appeared and disappeared. All the named path segments remained visible in both states, and the selected tab stayed fixed. Example with substituted path names:
project / content / release-20261123 / layout-r2 / final-problems-solutions.pdf
… / project / content / release-20261123 / layout-r2 / final-problems-solutions.pdf
At a fixed panel width, the breadcrumb should stay stable and show an ellipsis only when it hides a path segment. The exact width threshold and display scaling were not measured for this PDF case.
I reproduced this with a local Markdown file in the right-hand preview on Windows 11 (build 26300), at 150% display scaling. Codex Desktop is 26.1117.41037 (MSIX 26.1117.4957.0).
With the app maximized and idle, the breadcrumb repeatedly adds and removes the leading … /. The same named path segments remain visible, and the rendered document and scroll position stay stable. At my default restored window size, the preview pane collapses, so that comparison does not establish whether maximization is required or whether the available pane width is what matters.
I checked the installed build against the earlier analysis. It still decides whether to show the leading ellipsis before the loop finishes restoring path segments. In a separate calculation using simulated widths near the cutoff, the flag alternates even when zero segments are hidden. I did not measure the live breadcrumb widths.
I verified the app-zoom workaround suggested above with a local PNG in the right-hand preview on Windows. My Codex MSIX version is 26.1120.5083.0, and Windows display scaling stayed at 175% throughout.
| Codex zoom | Preview pane width (physical pixels) | Observed filename movement |
|---|---|---|
| 100% | 2298 | 17 position changes in 100 samples, alternating between two positions about 44 px apart |
| 110% | 2310 | 0 in 100 samples |
| 110% | 1983 and 2483 | 0 in 65 samples at each width |
I sampled the horizontal position of the filename in the breadcrumb using Windows UI Automation. The same image stayed open throughout the width and zoom comparisons. With 110% app zoom I can keep the preview wide on this setup. Thanks for suggesting it.
This also occurs with a local Markdown file opened from a chat link in the Windows desktop preview. Environment: Windows x64, build 26300, installed MSIX package OpenAI.Codex 26.1120.5083.0. The user observed rapid alternation between the complete visible breadcrumb and that same breadcrumb prefixed with … /; all visible path segments stay the same.
I inspected the breadcrumb layout logic in this package and found that it still computes showRoot before the loop that can restore all segments. A logic-only replay with synthetic widths (segments totaling 420 CSS px, measured available widths of 419.999989 and 443.999989 CSS px) alternates between { first: 0, showRoot: true } and { first: 0, showRoot: false }. Those numbers are simulated, not measurements from the affected window. The live symptom is user-observed, and I did not independently capture it in the desktop UI.
On the affected Windows installation, pressing Ctrl+- once to zoom out the entire Codex app stopped the breadcrumb flicker.
I also see the file path bar jitter rapidly when I open a file in the Codex desktop side panel. It happens intermittently. I would expect the path to stay steady once the file is open.
My installed Windows package is OpenAI.Codex 26.1117.4957.0, on Windows build 26300.
Additional reproduction on Windows with the newer Microsoft Store package OpenAI.Codex 26.1120.6357.0 (Nov 25, 2026). The issue is still present.
- In a local workspace, open a CSS file such as
rc-tabs-iframe-demo/src/style.cssin Codex's right-hand file pane. The leading… /in the path breadcrumb repeatedly appears and disappears while the file and selected tab remain unchanged. - It also occurs with a JS file in another workspace. It is not limited to cross-project previews.
- The same CSS file can flicker in both the ordinary code view and the Changes/Unstaged view. Closing its tab and reopening it from All files does not reliably stop the flicker.
- Making the file pane much wider did not stop it on this machine.
- The desktop log contains repeated
ResizeObserver loop completed with undelivered notificationsmessages. This is a correlation, not a confirmed attribution to the breadcrumb.
Expected: the breadcrumb should remain stable at a fixed pane width. This report adds a newer affected MSIX version and confirms that switching views/reopening from the file tree is not a workaround here.
Additional reproduction on Codex for Windows (OS build 26300). The breadcrumb flickers in the built-in preview with both PDF and C++ files, including when the chat is idle. In a C++ screen recording, the leading … / toggled at least nine times in about 1.6 seconds while the pointer was stationary outside the breadcrumb. The active tab and code content stayed stable. At a fixed pane width, the breadcrumb should remain stable.
I reproduced the file preview breadcrumb flicker on Windows 11 24H2 with Codex MSIX 26.1120.6357.0 and app zoom set to 130%. The leading ellipsis repeatedly appeared and disappeared at a fixed pane width.
Desktop log excerpt (UTC)
2026-11-26T03:46:41.480Z error [electron-message-handler] [desktop-notifications][global-error] ResizeObserver loop completed with undelivered notifications. rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=true rendererWindowId=1 rendererWindowVisible=true
A standalone Chromium page using the installed build's width calculation and a 1.3 device scale factor reproduced the toggle through the browser's ResizeObserver and emitted the same warning. At the width cutoff, the code decides to show an ellipsis before it finishes choosing which path segments to hide. The final layout can keep every segment and still show the ellipsis. The extra width triggers another measurement, which removes it and starts the cycle again. This matches the earlier analysis.
In the standalone test, showing the ellipsis only when the final calculation hid a path segment stopped the flicker. The breadcrumb still collapsed in a narrow pane.
Issue still occurring on Windows 11 26H2, Codex Version 26.1120.50957
I can reproduce a similar issue in the ChatGPT desktop app's Markdown file preview (November 26, 2026).
Additional reproduction observations:
- In the same directory,
交接_2026-11-26.mdflickers continuously, while新对话交接_2026-11-26.mddoes not. - Further testing indicates that the length of the full file path affects whether the flicker occurs.
- Expanding the preview pane to its maximum width does not stop the flicker for the affected path.
- The issue is localized to the file path/breadcrumb bar rather than the document body.
Expected behavior: the path bar should remain stable regardless of path length and preview width.
This may be related to breadcrumb truncation or layout recalculation, but the underlying cause is unverified. The exact app version and OS build have not yet been recorded.
Additional PDF A/B reproduction on Codex Desktop 26.1120.50957 / Windows MSIX 26.1120.6357.0 (Nov 26, 2026):
At the same fixed split-pane width, 马原题库-翻阅版.pdf makes the leading path ellipsis (… /) flash continuously. An otherwise identical copy in the same directory named 题库.pdf stays stable. The two PDFs have the same SHA-256, so changing the filename/path width alone changes the symptom; the PDF contents do not. The renderer log also records repeated ResizeObserver loop completed with undelivered notifications during the affected preview.
This supports the breadcrumb width/layout feedback-loop analysis already discussed here. I did not measure the live CSS pixel cutoff or patch the app.
Additional reproduction on the Codex Desktop 26.1120 release family for Windows: opening a Word document in the built-in preview makes the path bar repeatedly toggle the leading ellipsis while the document view stays steady. The flicker persists at a fixed pane width after changing the app zoom, resizing the pane, and trying a shorter filename.
Expected: the path bar should stay still while the pane and selected file are unchanged. This also matches the Word preview symptom tracked in #63744.
I reproduced this in the Codex desktop app on Windows. On my setup, the file path breadcrumb flickers below 120% app zoom. It stops at 120% or higher and starts flickering again when I lower the app zoom below 120%.
I see this in the local JSON file preview on Windows 26H2 (build 26300), with the OpenAI.Codex MSIX package 26.1120.5083.0.
In the recording, the leading … / appears and disappears while all the named path segments stay visible. The breadcrumb switches layouts 21 times in 2.2 seconds, shifting the filename about 34 pixels horizontally. The editor text below stays in place.
https://github.com/user-attachments/assets/8794fab9-b61c-4086-b25b-26dc70dfa70a
I can reproduce this on Windows 11 x64 (build 26300) with the Microsoft Store package OpenAI.Codex 26.1120.6357.0.
- Open a local JSON file in Codex’s native right-side file preview.
- Leave the file open without interacting. The leading ellipsis in the path repeatedly appears and disappears, shifting the filename horizontally. The JSON text below stays still.
- Pressing Ctrl+- once and narrowing the right-side preview pane did not stop the flicker on this installation.
Viewing the same file through the built-in browser avoids the affected component; it does not fix the native preview. For regression testing, the same file should show a stable path in the native preview at the original pane width.