Repository navigation
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
701dbd0 to
9648275
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
|
During my usage, I find it quite laborious to locate previously generated content in long conversations, so I still believe it is necessary to add a history panel in the sidebar. Therefore, I think this PR should be reopened. |
Issue for this PR
Closes #32165
Type of change
What does this PR do?
Adds a History sidebar panel in the session view that lists user messages and allows clicking to scroll to that message. Previously there was no way to navigate to a past user message from the sidebar.
Changes:
scroll-to-message.tsthat stores a scroll-to function referencescrollToMessagecallback that scrolls to a child element by message IDhistory.tsxthat lists user messages (most recent first), collapsible when there are more than 2 entriesSidebarHistoryin the builtin plugin listHow did you verify your code works?
Manually tested in the TUI — history entries appear and clicking one scrolls the session view to the corresponding message.
Screenshots / recordings
Checklist