René's URL Explorer Experiment


Title: Port Pi's fork-from-an-earlier-message flow whole by navbytes · Pull Request #2 · navbytes/opencode-plugins · GitHub

Open Graph Title: Port Pi's fork-from-an-earlier-message flow whole by navbytes · Pull Request #2 · navbytes/opencode-plugins

X Title: Port Pi's fork-from-an-earlier-message flow whole by navbytes · Pull Request #2 · navbytes/opencode-plugins

Description: Pressing ⏎ on a row above where you are now opened a yes/no confirm and then, separately, "Summarize the branch you are leaving?". Pi asks one question, and that question is the confirmation. It also summarizes something narrower than we did. Read from Pi's source (interactive-mode.ts#showTreeSelector → agent-session.ts#navigateTree → compaction/branch-summarization.ts) rather than from the docs, so the semantics match rather than the wording. What changed before now dialog on ⏎ yes/no confirm, then a separate summary picker one picker; its title says what ⏎ will do, so the choice is the confirmation esc in the picker jumped anyway, silently without a summary back on the same row, nothing forked cancel the custom prompt silently meant "no summary" back to the three choices (Pi's loop) what gets summarized the whole current session only the turns the move abandons order of operations fork first, then summarize abort stream → draft → move → inject ┌ Fork & prefill this turn? ───────────────────────────────────────────────┐ │ No summary start clean · nothing carried over│ │ Summarize everything below this point carry the 3 turns · ~14k over… │ │ Summarize with a custom prompt the same, with your own focus │ └──────────────────────────────────────────────────────────────────────────┘ A switch to another branch has no picked point, so its middle answer reads "Summarize what you are leaving". jumpSummary: "never", and a jump with nothing below the selected point, degrade to the plain confirm. "Everything below that point" The substantive piece. Pi collects the entries from the old leaf back to the common ancestor with the target and summarizes those; OpenCode has no such tree, since each branch is its own session and session.fork re-ids the copied prefix. So core/tree.ts#spineOf reduces a session to its ordered sessionID:messageID path from the root — an ancestor's copied prefix keeps the ancestor's own ids — and core/actions.ts#abandonedTail takes the deepest entry present in both spines as the common ancestor; everything after it in the current session is the tail. A fork plan cuts the target spine before its boundary, because session.fork copies messages strictly before it. Redoing trunk turn 2 summarizes turns 2–3. Switching from a branch to a sibling summarizes the branch's own turns and not the shared trunk. buildSpineMap is refactored onto spineOf so the walk has one definition. Order of operations Matching navigateTree: abort a streaming reply first (so the summary covers the reply as it actually ended) → draft the summary while nothing has moved yet → fork or switch → inject at the destination, the way Pi attaches its branch_summary entry at the new leaf. Drafting first is what makes esc meaningful: it aborts the helper session's in-flight reply and the whole jump. A summary that fails (rather than being aborted) still lets the move through, with a notice — the alternative is stranding you on the session you asked to leave. summarizeInto splits into draftBranchSummary + injectBranchSummary, and the transcript serialization the merge drafter already uses (core/decision.ts#transcriptText) is reused for it. Tests 11 new unit tests: the tail computation across trunk / branch / sibling / ancestor jumps against the existing fixture, and the dialog copy. A new pty e2e against the real OpenCode 1.18 TUI: all three options on screen in Pi's order, esc forks nothing, exactly one branch.opened{kind:"redo"}, summary.recorded, and the fork's next model request carries the injected summary (a noReply injection only reaches the provider on the following turn). Full unit suite, typecheck and build green. Not verified here: the server half of the e2e suite cannot run in this container — a bare opencode serve in an empty directory with no plugin installed never binds. That half is untouched by this change; worth a local bun run test:e2e before release. Changelog v0.2.2 was already tagged from 960105a, the commit this branch forks from, so its (unreleased) heading was stale. This adds a ## 0.2.3 (unreleased) section above it and dates ## 0.2.2 — 2026-09-03. 🤖 Generated with Claude Code https://claude.ai/code/session_01BrwAnTfTmJSmFwVn3DDFxr Generated by Claude Code

Open Graph Description: Pressing ⏎ on a row above where you are now opened a yes/no confirm and then, separately, "Summarize the branch you are leaving?". Pi asks one question, and that question is the confirmat...

X Description: Pressing ⏎ on a row above where you are now opened a yes/no confirm and then, separately, "Summarize the branch you are leaving?". Pi asks one question, and that question is the c...

Opengraph URL: https://github.com/navbytes/opencode-plugins/pull/2

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:80569a81-bf11-149b-54e5-c7f315bab7c3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8A8:BB75:9C8CE8:CF2792:6B01BA3B
html-safe-nonce5839b847f595488121a3063d7baa5051841d6e1689bbb16d18459d5a651528db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEE4OkJCNzU6OUM4Q0U4OkNGMjc5Mjo2QjAxQkEzQiIsInZpc2l0b3JfaWQiOiI0NDYwNTExMzcwNDk2MDMxMjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1e1432da958e572d5afc80b0528436dc465c85aa9ca7267c0faeba510af8900c
hovercard-subject-tagpull_request:4438561617
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/navbytes/opencode-plugins/pull/2/files
twitter:imagehttps://avatars.githubusercontent.com/u/25281802?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/25281802?s=400&v=4
og:image:altPressing ⏎ on a row above where you are now opened a yes/no confirm and then, separately, "Summarize the branch you are leaving?". Pi asks one question, and that question is the confirmat...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/navbytes/opencode-plugins git https://github.com/navbytes/opencode-plugins.git
octolytics-dimension-user_id25281802
octolytics-dimension-user_loginnavbytes
octolytics-dimension-repository_id1354341697
octolytics-dimension-repository_nwonavbytes/opencode-plugins
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1354341697
octolytics-dimension-repository_network_root_nwonavbytes/opencode-plugins
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/navbytes/opencode-plugins/pull/2/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnavbytes%2Fopencode-plugins%2Fpull%2F2%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnavbytes%2Fopencode-plugins%2Fpull%2F2%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=navbytes%2Fopencode-plugins
Reloadhttps://github.com/navbytes/opencode-plugins/pull/2/files
Reloadhttps://github.com/navbytes/opencode-plugins/pull/2/files
Reloadhttps://github.com/navbytes/opencode-plugins/pull/2/files
navbyteshttps://github.com/navbytes
opencode-pluginshttps://github.com/navbytes/opencode-plugins
Codehttps://github.com/navbytes/opencode-plugins
Issueshttps://github.com/navbytes/opencode-plugins/issues
Pull requests1 (1)https://github.com/navbytes/opencode-plugins/pulls
Actionshttps://github.com/navbytes/opencode-plugins/actions
Projectshttps://github.com/navbytes/opencode-plugins/projects
Security and qualityhttps://github.com/navbytes/opencode-plugins/security
Insightshttps://github.com/navbytes/opencode-plugins/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnavbytes%2Fopencode-plugins%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnavbytes%2Fopencode-plugins%2Fissues%2Fnew%2Fchoose
navbyteshttps://github.com/navbytes
mainhttps://github.com/navbytes/opencode-plugins/tree/main
claude/pi-context-tree-workflow-sjuutdhttps://github.com/navbytes/opencode-plugins/tree/claude/pi-context-tree-workflow-sjuutd
Conversation 0 https://github.com/navbytes/opencode-plugins/pull/2
Commits 3 https://github.com/navbytes/opencode-plugins/pull/2/commits
Checks 1 https://github.com/navbytes/opencode-plugins/pull/2/checks
Files changed https://github.com/navbytes/opencode-plugins/pull/2/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/2/files
Port Pi's fork-from-an-earlier-message flow whole https://github.com/navbytes/opencode-plugins/pull/2/files#top
Show all changes 3 commits https://github.com/navbytes/opencode-plugins/pull/2/files
906fda8 Port Pi's fork-from-an-earlier-message flow whole claude Sep 4, 2026 https://github.com/navbytes/opencode-plugins/pull/2/commits/906fda82467640435a154c8ddf37f1b2484c744a
d1a9bc0 e2e: assert the fork dialog from the flat capture, and take the turn … claude Sep 4, 2026 https://github.com/navbytes/opencode-plugins/pull/2/commits/d1a9bc094aca359cecd2b6a9ae3949684974728e
d1be97d changelog: the new flow is 0.2.3; 0.2.2 shipped from 960105a claude Sep 4, 2026 https://github.com/navbytes/opencode-plugins/pull/2/commits/d1be97d150cd08edfb42e28fe5706b6594bebe2d
Clear filters https://github.com/navbytes/opencode-plugins/pull/2/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/2/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/2/files
CHANGELOG.md https://github.com/navbytes/opencode-plugins/pull/2/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
DESIGN.md https://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
README.md https://github.com/navbytes/opencode-plugins/pull/2/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
USAGE.md https://github.com/navbytes/opencode-plugins/pull/2/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
actions.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-c387baa6b723ceeb51beb2f3c89a311245bb88e5cbbf2c9f67a41cd11ec23720
decision.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-9bba3a57075681f3f9b7b5c76bfc01083c664f5f23561ecddef015fe9c2cc9ad
tree.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-9bf0958f47f75f51a2c4654cfd85b6d956e804a1f2f39b4bf1f7942d3d7972a0
actions.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-e9cf0406daea30a5a8ac05743f94040b5cce9a691e9909fc9419b4485b049f6f
route.tsx https://github.com/navbytes/opencode-plugins/pull/2/files#diff-5becb0baca3019b553073efaefd9dc6d57e856889b45a5e3f375854dc87070bd
abandoned.test.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-d8fb5b7f137fb95edae93e8e5e6058e2363ce565da2c166f5b77e5706c37ca35
tui.test.ts https://github.com/navbytes/opencode-plugins/pull/2/files#diff-dd7d2c4bdf2b366dc15f4e76ca2fb1f8a1886d52427721a32363940884e6320e
CHANGELOG.mdhttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
DESIGN.mdhttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/DESIGN.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-3dc5dd454e080eb849ee5efaf79df2585fbe0a06804d69249b4c81da05a63875
README.mdhttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/USAGE.mdhttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/docs/USAGE.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-52296615debf3994195e43d91c94e02bfdc615a27620e0dbc72140b3de98dde1
src/core/actions.tshttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-c387baa6b723ceeb51beb2f3c89a311245bb88e5cbbf2c9f67a41cd11ec23720
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/src/core/actions.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-c387baa6b723ceeb51beb2f3c89a311245bb88e5cbbf2c9f67a41cd11ec23720
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-c387baa6b723ceeb51beb2f3c89a311245bb88e5cbbf2c9f67a41cd11ec23720
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-c387baa6b723ceeb51beb2f3c89a311245bb88e5cbbf2c9f67a41cd11ec23720
src/core/decision.tshttps://github.com/navbytes/opencode-plugins/pull/2/files#diff-9bba3a57075681f3f9b7b5c76bfc01083c664f5f23561ecddef015fe9c2cc9ad
View file https://github.com/navbytes/opencode-plugins/blob/d1be97d150cd08edfb42e28fe5706b6594bebe2d/src/core/decision.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/navbytes/opencode-plugins/pull/2/{{ revealButtonHref }}
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-9bba3a57075681f3f9b7b5c76bfc01083c664f5f23561ecddef015fe9c2cc9ad
https://github.com/navbytes/opencode-plugins/pull/2/files#diff-9bba3a57075681f3f9b7b5c76bfc01083c664f5f23561ecddef015fe9c2cc9ad
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/2/files
Please reload this pagehttps://github.com/navbytes/opencode-plugins/pull/2/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.