codex icon indicating copy to clipboard operation
codex copied to clipboard

Typing is laggy in latest update

Open tomduncalf opened this issue 2 months ago • 6 comments

What version of the Codex App are you using (From “About Codex” dialog)?

Version 26.924.22138

What subscription do you have?

Pro

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

Typing in the chat box in Codex Desktop feels very laggy since the latest update. I do have a lot of recents, because I can't find an easy way to bulk archive them (and once a chat is archived, getting it back is quite an ordeal). Repro is just typing in any chat

What steps can reproduce the bug?

Submitted performance trace: 01a0e21a-84d8-7542-b3ca-fde8e7eaf70e

What is the expected behavior?

No response

Additional information

No response

tomduncalf avatar Sep 27 '26 09:09 tomduncalf

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #47628

Powered by Codex Action

github-actions[bot] avatar Sep 27 '26 09:09 github-actions[bot]

Update — September 30, 2026: boundary-input stalls no longer observed after updating

On 26.928.20755 (build 12246), the same user now reports that the stalls when entering the first character into an empty composer and deleting the last character have disappeared. This is a user-observed improvement after updating, not a timed before/after benchmark or identification of the fixing change. It does not establish that every previously reported hover, attachment or chat-switching symptom is resolved.

Separately, invisible composer selection persisted after updating but was restored by changing Appearance → Accent from White to Default (blue). That finding belongs to #48477 and should not be conflated with the input-latency improvement.

The user also reports intermittently needing to press Cmd+A twice to select all, both before and after the update. Exact reproduction conditions and the first press's selection/focus behavior are not yet established; this is not evidence that the old style-recalculation stall persists.

The measurements below remain historical evidence from 26.924.22138, not measurements of the new build.


Evidence points to a responsiveness regression around the 26.924 navigation/sidebar redesign. On macOS, the retained trace confirms a 727.792 ms keyboard-input-to-compositor-presentation path, with repeated broad style recalculation blocking the renderer.

Environment: ChatGPT Desktop 26.924.22138 (11645), embedded Codex Framework 154.0.8037.57; macOS 27.0 (26A428), Apple Silicon, 16 GB RAM. Recorded September 28, 2026.

Why the redesign is a meaningful regression target

  • On this Mac, the user reports substantially worse responsiveness after the redesign: first input, moving the pointer toward the chat list, switching chats, and attaching images. Sustained typing is usually smooth.
  • Switching sidebar grouping from project groups to a flat list substantially reduced perceived stutter, with the same long conversation open and chat history retained. Closing the adjacent document panel had made little difference. This is a user-observed mitigation, not a timed A/B test.
  • #48760 independently reports typing, menu-hover and scrolling lag after the redesign on Windows, on the same app version. Its follow-up also reports improvement after collapsing Recents/Projects and leaving the conversation area blank; those changes were combined.

These observations support investigating a regression in the updated UI; they do not isolate an individual change or implicate the settings screen specifically.

What the trace establishes

At trace offset +25.040786 s, a KEY_PRESSED EventLatency record reaches compositor presentation after 727.792 ms:

Stage Duration
Renderer compositor → renderer main 331.240 ms
Renderer main processing 182.285 ms
Renderer main finished → commit 180.311 ms
Frame submission → presentation 30.196 ms
Other stages 3.760 ms

These include waiting as well as execution. This is a browser-recorded presentation endpoint, not a physical-display measurement.

The 182.285 ms processing stage includes 154.085 ms of style recalculation. Other events corroborate repeated broad style work:

  • Of 50 input dispatches, 48 average 1.884 ms. Two take 176.332 / 178.697 ms, including 161.220 / 166.065 ms recalculating styles over approximately 17,850 elements, including pseudo-elements.
  • The first slow input's enclosing task lasts 545.894 ms, including 491.264 ms of style work across multiple passes. Nested timings overlap and must not be added together.
  • Matching installed stacks show ProseMirror caret/selection geometry reads forcing pending style work. They identify where recalculation is forced, not which DOM mutation or CSS rule originally invalidated styles.

September 28 observations and investigation request (historical)

After the sidebar mitigation, the user still reports stalls on empty → first character and last character → empty. Edits that keep text present are smooth. The older trace was not synchronized to these later boundary observations; its slow deletion path is selected-range deletion. Invisible selection highlighting is a separate defect.

Please investigate the redesign's invalidation scope and mounted sidebar population, including expanded and pinned rows. Compare grouping modes with the same populated history, identify the invalidating mutation/selector, and validate first/last-character edits, hover and chat switching using interaction-to-presentation latency.

The retained built-in recording lacks style-invalidation and SelectorStats records. A short opt-in capture with those categories and text-free empty/nonempty transition markers would help identify the remaining cause. At the time of this recording, there was no controlled pre-update trace or validated fix. See the September 30 user-observed improvement above; a timed validation remains unavailable. Profiling overhead applies.

Only sanitized measurements and call-path names are shared; no raw trace, prompt content, account identifiers or local paths are attached.

heznpc avatar Sep 28 '26 07:09 heznpc

ChatGPT desktop 26.928.21956 (released Sep 30, 2026) — same issue. Typing normal text in the prompt field is laggy, with input randomly delayed by up to roughly 100 ms, which is noticeably long for text input. Input in all other apps and browser text fields is always instant. This was introduced in one of the previous versions a few days ago.

Also, this update specifically introduces major problems with editing text: deleting by pressing Backspace (actually Delete on a MacBook) is often either delayed by 1-2 seconds or ignored entirely. Moving the cursor with the keyboard arrow keys or the mouse does not work at all.

I’m forced to type everything in an external text editor and paste it into Codex.

macOS Sonoma 14.8.4 (23J319)


P.S. looks fixed in 26.928.31416 (Released Oct 1, 2026) at least on macOS

PiN73 avatar Sep 30 '26 09:09 PiN73

Still lots of lag on Version 26.1007.71326 in Windows. Very often while typing or clicking between chats it freezes for up to a second.

adamerose avatar Oct 15 '26 07:10 adamerose

I've done some tracing with Codex. Here is the conclusion: "The trace confirms the freeze is in the main Codex window’s renderer. Across the 66-second recording, three keyboard-processing tasks occupied it for 40 seconds. About 38.5 seconds went into recalculating styles and layout. The 58 slow edits each triggered four style recalculations, some touching 4,211 elements. As more keystrokes queued up, the window couldn’t paint the results."

What an absolute pathetic low-quality software engineering. The main application of a trillion dollars AI corporation is an absolute embarrassment and example how you should NEVER engineer your applications. I'm done with OpenAI. I can't bear it anymore. Codex is an unusable pile of garbage

ShiftZ avatar Nov 11 '26 17:11 ShiftZ

Still lagging with Version 26.1120.50957.

Ubuntu 24.04

obertini78 avatar Nov 28 '26 17:11 obertini78