Skip to content

Stitch continued session transcripts in WebUI - #2015

Merged
1 commit merged into
nesquena:masterfrom
Jellypowered:fix/session-lineage-full-transcript
May 10, 2026
Merged

Stitch continued session transcripts in WebUI#2015
1 commit merged into
nesquena:masterfrom
Jellypowered:fix/session-lineage-full-transcript

Conversation

@Jellypowered

@Jellypowered Jellypowered commented May 10, 2026

Copy link
Copy Markdown
Contributor

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/session now merges sidecar history with CLI lineage history instead of blindly preferring only one source
  • added regression coverage for the session API behavior around stitched/merged history

Why

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

  • continuation stitching only applies to real continuation boundaries, not arbitrary child sessions
  • merged transcript results are deduplicated to avoid repeated messages when both sources contain overlapping history

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.py
  • result: 8 passed in 3.97s

This PR was prepared with assistance from hermes-agent.

@nesquena-hermes nesquena-hermes closed this pull request by merging all changes into nesquena:master in a42adbe May 10, 2026
pull Bot pushed a commit to soitun/hermes-webui that referenced this pull request May 10, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants