Skip to content

tui: Markdown export omits messages outside loaded history #50732

Closed as duplicate

Description

@OpeOginni

Description

Markdown /export formats the messages currently loaded in the TUI rather than the full session transcript. In a long session, earlier prompts and responses can be missing from the export. /copy uses the same loaded list. JSON export already fetches the full transcript.

Expected: Markdown export and transcript copy include all recorded session messages.

Plugins

None configured in the development environment.

OpenCode version

v2.0.14 (V2 development checkout)

Steps to reproduce

  1. In the V2 TUI, create a session with a prompt followed by more than 20 session messages.
  2. Without loading the older messages in the TUI, run /export and select Markdown.
  3. Compare it with the JSON export: the Markdown export omits messages outside the loaded page.

Screenshot and/or share link

Not available.

Operating System

macOS (Darwin 27.0.0)

Terminal

Zed (xterm-256color)

Activity

  1. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. neriousy commented on Oct 20, 2026

    @neriousy
    Member

    Thanks for the report. This is the same issue as #50014, so I'm closing it as a duplicate. #50733 also fixed it: Markdown export and transcript copy now use the full session history from the server instead of only the messages loaded in the TUI.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions