fix: keep explicit fork sessions out of compression lineage - #2014
Merged
1 commit merged intoMay 10, 2026
Merged
Conversation
a42adbe
pull Bot
pushed a commit
to soitun/hermes-webui
that referenced
this pull request
May 10, 2026
…ons out of compression lineage by @ai-ag2026
SysAdminDoc
pushed a commit
to SysAdminDoc/hermes-webui
that referenced
this pull request
Jun 26, 2026
…ons out of compression lineage by @ai-ag2026
bernyforce
pushed a commit
to bernyforce/hermes-webui
that referenced
this pull request
Jul 29, 2026
…ons out of compression lineage by @ai-ag2026
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.
Summary
/api/session/branchsessions withsession_source="fork".Root cause
The sidebar lineage collapse uses
parent_session_idas a fallback lineage key when no explicit compression lineage metadata is present. That is useful for compression continuations, but explicit WebUI forks also haveparent_session_id. When forking from an already forked/filtered session and the immediate parent is not in the current list, the new fork can be treated like a lineage continuation of its parent/root instead of remaining an independently selectable fork row.Related reconnaissance
fork from here fork,fork session fork parent,fork from fork session, andsession fork parent.Test plan
node --check static/sessions.jspython3 -m py_compile api/routes.pyuv run --with pytest --with pyyaml python -m pytest tests/test_465_session_branching.py tests/test_v050253_opus_followups.py tests/test_session_lineage_collapse.py -q -o addopts=git diff --checkReview note
Independent delegate review was unavailable earlier due timeout, so this PR is intentionally narrow and manually reviewed against the scoped diff.