Support bulk transcript imports - #13
Merged
Merged
Conversation
Stephen Belanger (Qard)
force-pushed
the
agent/multi-session-import
branch
2 times, most recently
from
August 11, 2026 17:08
a8105d3 to
e88626a
Compare
Stephen Belanger (Qard)
marked this pull request as ready for review
August 11, 2026 18:24
Stephen Belanger (Qard)
force-pushed
the
agent/multi-session-import
branch
from
August 11, 2026 18:26
e88626a to
dee5da6
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 13, 2026
Stephen Belanger (Qard)
force-pushed
the
agent/multi-session-import
branch
from
August 13, 2026 22:34
dee5da6 to
502fdc4
Compare
Signed-off-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Stephen Belanger (Qard)
force-pushed
the
agent/multi-session-import
branch
from
August 13, 2026 22:43
502fdc4 to
9315200
Compare
Abhijeet Prasad (AbhiPrasad)
approved these changes
Aug 14, 2026
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
--allto discover and import every valid local parent session for the selected agent--destination <DESTINATION>syntax--attachlimited to exactly one explicit sessionBehavior
Explicit multiple IDs let users select a safe subset rather than importing every local session.
--allvalidates native transcript identity, skips symlinks, ignores unrelated JSONL, reports duplicate parent transcripts, and imports sessions in stable order.Subagent transcripts are related content rather than independent top-level selections. Selecting a Claude or Codex parent explicitly, or through
--all, discovers its subagent transcripts and replays them through the existing subagent lifecycle so their task, LLM, and tool spans remain in the parent's trace under the spawning turn. Codex subagent rollouts are excluded from the independent--allsession list, preventing duplicate root traces.transcript_import/claude.rsandtranscript_import/codex.rsnow own each source's native roots, identity and filename rules, event synthesis, subagent discovery, and incremental tailing. The shared module is limited to selection orchestration, safe JSONL reading, dispatch, and format-independent helpers, matching the existing translator organization.Because session IDs are variadic, destination can no longer remain an optional trailing positional without ambiguity. This CLI has not been released, so the PR establishes
--destinationbefore compatibility constraints exist.Validation
cargo test --manifest-path bt-daemon/Cargo.toml --all-features --lockedcargo test --manifest-path bt-daemon/Cargo.toml --all-features --locked transcript_import::testscargo test --manifest-path bt-daemon/Cargo.toml --all-features --locked --test replaycargo clippy --manifest-path bt-daemon/Cargo.toml --all-features --all-targets --locked -- -D warningscargo fmt --manifest-path bt-daemon/Cargo.toml -- --checkgit diff --checkThe
btembedding will need to update its import argument access and pin this daemon revision after merge.