import: address review — pi branch-safe model, copilot streaming scan

main

Commit

computermode3mo ago
  • pi: extract the model over the [0,end) prefix (the same buffer token usage uses) instead of the [start,end) slice. Pi's branch-aware ExtractModel walks parentId back to the root, so the slice must keep the file's beginning; truncating only the end preserves those chains while still bounding the turn. Fixes wrong/empty per-turn model on branched sessions and when a turn's own assistant message omits the model. Adds a regression test.
  • copilot: scan events.jsonl line-by-line and stop at the first session.start instead of reading the whole file and allocating via splitRawLines.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com Entire-Checkpoint: 0b1a3d9f7f74

Checkpoints

Following work done in https://github.com/entireio/cli/pull/1527, we want to extend the import capabilities to detect the other agents we support, including gemini, opencode, codex etc. Use existing p

Claude CodeOpus 4.8
View session
Checkpoint 1