fix: make worker handoff rotation durable
This commit is contained in:
@@ -152,6 +152,10 @@ type Session struct {
|
||||
// CLIAdapter.Occupancy), since the file may not exist yet immediately
|
||||
// after lease.
|
||||
SessionFile string `json:"session_file,omitempty"`
|
||||
// SessionID is the harness-native identity when its usage is stored in a
|
||||
// database rather than a transcript. OpenCode's SQLite session ID is kept
|
||||
// here so rotation never guesses "the newest session" after a restart.
|
||||
SessionID string `json:"session_id,omitempty"`
|
||||
// TaskFileSHA is the sha256 of the worktree's TASK.md at the time this
|
||||
// session's lease was created — the immutable-spec hash continuity's
|
||||
// pickup validation compares against on the next rotation (§6.2).
|
||||
|
||||
Reference in New Issue
Block a user