fix(session): reset adopted turn id · Entire
fix(session): reset adopted turn id
4b00f10→main·
peyton-alt·3w ago·2 files·+5 added/-0 removed
Sessions
21807790c5ffView transcript
[?
Adopt Active Sessions Across Repos and WorktreesCodex·GPT-5.5·1 step](/content/gh/entireio/cli/session/019ef6af-f809-76d3-8c95-7d7f0bc0c5ef#timeline-21807790c5ff/index.html)
Changes
2
cmd/entire/cli
Msession_adopt.go+1
- Msession_adopt_test.go+4
436 unmodified lines
437
438
439
440
441
442
443
436 unmodified lines
adopted.CheckpointTranscriptSize = 0
adopted.TranscriptIdentifierAtStart = ""
adopted.ClearLegacyTranscriptOffsets()
adopted.TurnID = ""
adopted.TurnCheckpointIDs = nil
adopted.LastCheckpointID = id.EmptyCheckpointID
adopted.LastCheckpointCommitHash = ""
Mcmd/entire/cli/session_adopt.go+1
619 unmodified lines
620
621
622
623
624
625
626
60 unmodified lines
687
688
689
690
691
692
693
694
695
619 unmodified lines
CondensedTranscriptLines: 2,
TranscriptLinesAtStart: 2,
TranscriptIdentifierAtStart: "source-assistant",
TurnID: "source-turn",
TurnCheckpointIDs: []string{"abc123def456"},
LastCheckpointID: id.MustCheckpointID("abc123def456"),
LastCheckpointCommitHash: "source-commit",
60 unmodified lines
if len(adopted.TurnCheckpointIDs) != 0 {
t.Fatalf("TurnCheckpointIDs = %v, want empty", adopted.TurnCheckpointIDs)
}
if adopted.TurnID != "" {
t.Fatalf("TurnID = %q, want empty target-local turn ID", adopted.TurnID)
}
if !adopted.LastCheckpointID.IsEmpty() {
t.Fatalf("LastCheckpointID = %s, want empty", adopted.LastCheckpointID.String())
}
Mcmd/entire/cli/session_adopt_test.go+4