Skip to content

Feature request: Open long threads at latest message and lazy-load older history #39946

Open

Description

@hong22491257fixnow

Feature request

Please add a per-thread history-loading mode so a long-running Codex task can open at only the latest message or a recent window (for example, the last day), while older history is loaded only on demand.

Problem

Opening a long-lived thread can force Codex Desktop to restore or process substantial history even when the user only needs the latest task state.

In one observed Windows case, merely opening a large thread increased the Codex main process private memory from approximately 8.19 GB to 12.79 GB. Total system RAM reached approximately 97.2%, heavy paging began, and the UI froze. Switching away from the thread did not release the memory; a full app restart was required. After restart, Codex returned to approximately 0.56 GB and total RAM usage returned to approximately 60%.

This is especially disruptive on 16 GB systems. Creating a replacement thread is not an adequate workaround because users rely on long-running task history for continuity.

Requested behavior

  • Open a task at the latest message by default.
  • Lazy-load older messages only when the user scrolls upward or explicitly requests them.
  • Add a per-thread option such as:
    • Latest message only
    • Recent day / recent window
    • Full history
  • Immediately cancel history restoration/loading when the user navigates away.
  • Keep the original thread identity and full history intact; do not require archive, deletion, or handoff to a new task.
  • Warn before restoring an exceptionally large history.
  • Keep sending/steering usable without reconstructing the entire retained history.

Expected result

Accidentally opening a very large thread should not make the whole computer or Codex app unresponsive. The user should be able to continue from the newest context and retrieve older content only when needed.

Environment

  • Codex Desktop on Windows 11
  • 16 GB RAM
  • Long-running task with a large retained conversation history

Related reports

This request focuses on the missing user-facing control and bounded/lazy history-loading behavior. No private thread IDs, conversation content, or local file paths are included.

Activity

  1. added
    enhancement
    app
    session
    windows-os
    on Aug 21, 2026
  2. ezmodules-gaias commented on Nov 17, 2026

    @ezmodules-gaias

    Please support the following behavior for this existing feature request:

    1. When opening or switching to a conversation, immediately show the latest screen or a bounded recent portion and a usable composer.
    2. Fetch and parse older messages/tool outputs incrementally only when the user scrolls upward or explicitly requests older information. Merely hiding fully loaded history is insufficient.
    3. Keep UI history loading separate from the agent's retrieval of relevant older context, while preserving full stored history and conversation identity.
    4. Stop unnecessary history loading when navigating away; avoid eagerly restoring every previously visited conversation.
    5. Apply this to existing long conversations and preserve scroll position, drafts, and message order.
    6. If historical content fails to load, leave recent text and controls usable instead of blocking the entire application behind a blank/logo-only screen.

    A complementary request is to represent generated images as click-to-load icons/links, including intermediate previews emitted during generation and tool-result images, rather than changing only the final assistant reply.

    Please validate bounded initial fetching/parsing/memory as well as rendering, on desktop and mobile/remote views. No local diagnostics or private conversation data are included in this comment.

    The complementary image-display request has been filed as #62038.

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

    appenhancementperformancesessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions