Skip to content

[Desktop][Linux] Completed-turn collapse hides assistant replies — root cause and minimal patch #43618

Open

Description

@emilfihlman

What version of the Codex App are you using?

Linux Debian package chatgpt version 26.901.51231 (the package version used for the renderer investigation and patch checks).

What subscription do you have?

ChatGPT Pro 20x.

What platform is your computer?

Debian Linux, x86_64.

What issue are you seeing?

Assistant commentary and earlier final answers can disappear from the normal transcript when a completed turn's activity collapses. Interleaved user follow-ups can remain visible, creating an apparently unanswered sequence of instructions even though the renderer still has the assistant replies.

Related reports: #42017 and #39011. This report records a specific Linux renderer cause, an isolated reproduction, and reusable candidate-fix code. The analysis was first posted in this technical follow-up.

Source and proposed solution: chatgpt-message-visibility-patcher, including the one-line renderer change. Maintainers are welcome to use this repository as the source for the code and port the solution into the desktop renderer.

What steps can reproduce the bug?

The deterministic reproduction is at the renderer component level:

  1. Supply a synthetic turn containing, in order: user U0, commentary A1, a tool row, accepted steering user U1, final F1, a second tool row, commentary A2, final F2.
  2. Render the completed turn with activity collapsed.
  3. Compare visible authored rows before and after the candidate predicate change below, then expand and re-collapse activity.

Observed in the isolated browser harness:

  • Original collapsed view: U0, U1, F2. A1, F1, and A2 are hidden.
  • Patched collapsed view: all six authored messages in source order; tools remain collapsible.
  • Expanded view: the same eight rows before and after the patch, each appearing once.

What is the expected behavior?

Authored, user-visible assistant and user messages should remain visible in chronological position after task completion. Tool activity can remain collapsible. Preserving authored prose is preferable even when some text repeats.

Additional information

Located cause

In webview/assets/subagent-activity-chip-group-f888d636e4fc.js, the minified KE function decides which standalone activity units remain visible when activity is collapsed. It retains certain interactive tools and user messages with steering or hook metadata, but excludes assistant messages. GE partitions the units, $E allows automatic collapse after the final answer starts, and tD renders persistent units outside the collapsed activity body.

Minimal candidate fix

Keep the existing tool cases and replace the classifier's final predicate:

- i.type === `user-message` &&
-   (i.steeringStatus != null || i.hookFeedback === true)
+ i.type === `assistant-message` || i.type === `user-message`

This keeps standalone authored messages persistent, including commentary and earlier final answers. The change is limited to renderer visibility.

Validation and limits

The browser harness executed the shipped collapse component and decision functions with substitute providers, unit projection, message leaves, and animation wrappers. Live-to-final transitions, expand/re-collapse, and serialized fixture/browser reload checks passed. Separate renderer projection tests passed 577 assertions over 64 synthetic snapshots. Archive tests covered syntax, integrity hashes, unchanged offsets and unrelated bytes, idempotence, backups, rollback, and permissions; synthetic compatible-upgrade cases also passed.

These are component and archive checks, not a full desktop end-to-end or app-server persistence test. Reconnect, history pagination, and mobile behavior remain outside the verified scope.

The linked repository provides a reversible local installer with automatic reapplication after compatible APT updates. Unknown renderer structures are left untouched with a warning. The original one-line contribution is available under MIT OR CC0-1.0; original tooling is MIT, with Acorn's separate MIT notice retained. Since the affected desktop source is absent from the public tree, the code is offered for maintainer adaptation through this report.

All original work on the patch project, including this investigation and report, was done with GPT-6 Astra Ultra.

Activity

  1. added
    bug
    app
    on Sep 7, 2026
  2. emilfihlman commented on Sep 21, 2026

    @emilfihlman
    Author

    Updated the patcher for Linux chatgpt 26.915.31945: code.

    The app update changed the renderer, so the old whole-function matches stopped working. The patcher now targets the collapse decisions and preserves the surrounding code.

    In all mode, messages and activity stay visible; collapse controls change dimming. Fully quit and reopen ChatGPT after applying the update.

    Written by Codex at the user’s request to update this report.

  3. emilfihlman commented on Oct 30, 2026

    @emilfihlman
    Author

    Still happening on Linux with Codex 26.1021.22027 (build 21747). This time, a user message I sent was hidden from the chat, while the agent still received it and could quote it back.

  4. emilfihlman commented on Oct 30, 2026

    @emilfihlman
    Author

    Another occurrence on Codex 26.1021.22027 (build 21747), Linux: my stop instruction and a follow-up correction disappeared from the visible chat. Both are still present in the app’s saved history, and the visible assistant reply explicitly refers to the missing stop instruction. This affects user messages too, not just assistant replies.

  5. AndreyGusman commented on Nov 2, 2026

    @AndreyGusman

    Additional Windows reproduction of the completed-turn collapse issue.

    Environment: ChatGPT/Codex desktop app 26.1027.3384.0 on Windows 10 Pro (10.0.19045), local chat.

    Observed: After a turn completes, the transcript shows a collapsed row labeled in Russian “Выполнено за 23 с” (“Completed in 23 s”). The final answer remains visible below it. Expanding the row reveals assistant commentary/tool activity and multiple user messages sent while the assistant was working, interleaved with the assistant's responses. Collapsing it again hides those user messages, so the visible transcript skips the user's follow-up instructions and makes the final answer difficult to understand in context.

    Expected: Every user-authored message should stay visible in chronological order after the turn completes. Collapsing tool/activity details should not hide user messages or authored assistant updates.

    The affected user supplied before/after screenshots showing the collapsed and expanded states. I am omitting the screenshots and conversation text from this public comment for privacy. This observation does not imply that messages were deleted; they reappear when the row is expanded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Linuxappbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions