Description
Forked threads come up with an empty timeline. The provider session gets cloned fine — the model has the whole conversation — but none of the source thread's events come along, so the UI shows a blank thread.
bb thread fork <pi-thread-id> --workspace reuse
bb thread fork <pi-thread-id> --source-seq-end 30
Both settle idle with /timeline returning no rows, while ~/.bb/pi-bridge-sessions/<fork>.jsonl contains the full cloned conversation.
Context: I'm building a plugin that does pi's esc-esc rewind inside bb. Pick any step of a pi session, fork at that point, keep typing. The session side already works (I truncate the fork's session file before its first turn, and the model continues from exactly that step). The part I can't do is show the inherited history in the forked thread. Right now I render the session file myself in a plugin panel, which works but isn't the real thread page.
A couple of things I found while poking at this:
- The pi bridge's
thread/forkalready takes aproviderCheckpointIdand calls pi'sSessionManager.createBranchedSession, so branch-at-any-entry exists at the provider level. The public fork API only takessourceSeqEndand doesn't seem to map it down to a checkpoint. - I tried inserting synthetic rows into the
eventstable directly (client/turn/requested,turn/started,item/completed,turn/completed). sqlite takes them and the shapes are easy to produce, but the server serves events from its in-memory cache, so they don't appear until a restart. So rendering foreign events isn't the hard part — there's just no write path. - Import an existing ACP provider session as a thread (session/load with history persist) #1028 is the same underlying ask from the import side (adopt an existing session with history).
What I'd like, either one:
- fork copies the source thread's events up to
sourceSeqEnd(ideally also accepting a provider checkpoint as the anchor), or - some SDK way to project session history into the timeline —
events.append, or an "adopt session" endpoint. That would cover Import an existing ACP provider session as a thread (session/load with history persist) #1028 too.
Happy to share the plugin that exercises all of this.
Activity
[-]Fork should clone the source thread's timeline events (and/or expose an event-append path for provider-session history)[/-][+]Forked threads have an empty timeline — fork should clone source events[/+]SawyerHood commentedon Aug 18, 2026
Reproduction & root-cause report: https://get-bb.github.io/reports/issues/1500.html
The report has copy-paste repro steps, screenshots where the bug is visual, code permalinks at
16ceb3a54, and repro artifacts. It was independently re-run by a second agent (see its Verification section).Fork clones the source thread's conversation events into its timeline
swairshah commentedon Aug 20, 2026
I have a prototype implementation for this issue in :
swairshah@afcf116
It copies the source thread's visible conversation events into the fork before provisioning. It honors
sourceSeqEndfor the copied history, skips identity, provisioning, delta, and usage events, and excludes side-chat forks. It uses the normal event ingestion path so timeline rendering, search indexing, and realtime notifications continue to work.The prototype does not fix the other problem found in the reproduction report.
sourceSeqEndis still not translated intosourceProviderCheckpointId, so the visible history can stop at the selected turn while the provider session still forks from the tip.Before I open an upstream PR, are you open to the eager-copy approach for inherited timeline history? If so, I can do to PRs: checkpoint propagation first, followed by the timeline copy. If you would rather persist
sourceSeqEndand project the source history lazily I can rework the prototype.Clone source history into thread forks and honor sourceSeqEnd
Clone source history into thread forks and honor sourceSeqEnd
Clone source history into thread forks and honor sourceSeqEnd
Clone source history into thread forks and honor sourceSeqEnd
Clone source history into thread forks and honor sourceSeqEnd
Clone source history into thread forks and honor sourceSeqEnd (#2142)