anomalyco / anomalyco/opencode

/export only exports the loaded portion of a long thread

Open
#50,014 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

In a long thread, /export writes only the part of the conversation that's currently
loaded. The file starts partway in and everything before that is missing. There is no
warning: the export succeeds and the file looks complete.

Scrolling to the top first, so the whole thread loads, gives a correct export. I'd
expect /export to write the full thread regardless of scroll position.

Plugins

No response

OpenCode version

v2.0.10

Steps to reproduce
  1. Open a thread with well over 100 messages, so older messages aren't loaded.
  2. Run /export without scrolling, taking the default options.
  3. Check the first message in the file. It begins partway into the session.
  4. Scroll to the top of the same session, then run /export again.
  5. This file has the full thread. Scroll position is the only difference.
Screenshot and/or share link

No response

Operating System

macOS 27

Terminal

Ghostty

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the /export command and tracing how it selects messages when a long thread has only its currently visible portion loaded. Reproduce with a thread well over 100 messages without scrolling, then compare the export with one made after scrolling to the top. Done means both exports contain the full conversation regardless of scroll position.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.