Stitch continued session transcripts in WebUI - #2015
Merged
1 commit merged intoMay 10, 2026
Merged
Conversation
a42adbe
SysAdminDoc
pushed a commit
to SysAdminDoc/hermes-webui
that referenced
this pull request
Jun 26, 2026
bernyforce
pushed a commit
to bernyforce/hermes-webui
that referenced
this pull request
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a WebUI history issue where sessions split by continuation events (such as compression or CLI-close) could show only the latest segment instead of the full conversation.
What changed
get_cli_session_messages()now walks valid continuation lineage and stitches messages across session segments in chronological order/api/sessionnow merges sidecar history with CLI lineage history instead of blindly preferring only one sourceWhy
Some continued sessions were visibly fragmented in the UI even though they were still part of the same logical conversation. This made it difficult to read the full transcript when the session had multiple continuation segments.
Notes
Test Plan
source /root/.hermes/hermes-webui/.venv/bin/activate && python -m pytest -q /root/.hermes/hermes-webui/tests/test_session_lineage_full_transcript.py /root/.hermes/hermes-webui/tests/test_cli_session_tool_metadata.py /root/.hermes/hermes-webui/tests/test_session_lineage_metadata_api.py8 passed in 3.97sThis PR was prepared with assistance from hermes-agent.