Skip to content

Properly track fromId in branch_summary events#3795

Open
CGamesPlay wants to merge 1 commit into
earendil-works:mainfrom
CGamesPlay:push-uvvwpvnlnnkn
Open

Properly track fromId in branch_summary events#3795
CGamesPlay wants to merge 1 commit into
earendil-works:mainfrom
CGamesPlay:push-uvvwpvnlnnkn

Conversation

@CGamesPlay
Copy link
Copy Markdown

@CGamesPlay CGamesPlay commented Apr 27, 2026

In session.md the doumentation for BranchSummaryEntry says that parentId should be different from fromId. The docs don't say how they should be different, but it seems clear that parentId is the target location in the session history and fromId is the original leaf that was summarized when the navigation happened.

I don't think Pi has ever supported this. It's currently setting fromId == parentId, always. This small patch gets pi to properly record the true fromId when summarizing branches.

I need this for an extension that walks the message history (like the example TODO extension) and should be able to understand when tree navigations happen so that it can properly keep the state from those branches.

Resolves #3796

@github-actions
Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Apr 27, 2026
@badlogic badlogic reopened this Apr 27, 2026
@CGamesPlay CGamesPlay force-pushed the push-uvvwpvnlnnkn branch from 7d3d3be to cefb534 Compare May 18, 2026 16:45
@CGamesPlay
Copy link
Copy Markdown
Author

Rebased. This is still relevant.

@CGamesPlay CGamesPlay force-pushed the push-uvvwpvnlnnkn branch from cefb534 to 2fc87d8 Compare May 21, 2026 09:28
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.

BranchSummaryEvent does not properly track fromId

2 participants