anomalyco / anomalyco/opencode
/export only exports the loaded portion of a long thread
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
- Open a thread with well over 100 messages, so older messages aren't loaded.
- Run /export without scrolling, taking the default options.
- Check the first message in the file. It begins partway into the session.
- Scroll to the top of the same session, then run /export again.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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