fix(backend): capture task_session_commits from live turn and git events (#2605)

Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com>
This commit is contained in:
nova28
2026-08-15 21:43:09 +08:00
committed by GitHub
parent c26e5cf8a3
commit 6b27e67b04
35 changed files with 2013 additions and 74 deletions
@@ -310,7 +310,7 @@ type GitSnapshotRepository interface {
GetLatestGitSnapshotsBySessionIDs(ctx context.Context, sessionIDs []string) (map[string]*models.GitSnapshot, error)
GetFirstGitSnapshot(ctx context.Context, sessionID string) (*models.GitSnapshot, error)
GetGitSnapshotsBySession(ctx context.Context, sessionID string, limit int) ([]*models.GitSnapshot, error)
CreateSessionCommit(ctx context.Context, commit *models.SessionCommit) error
CreateSessionCommit(ctx context.Context, commit *models.SessionCommit) (bool, error)
GetSessionCommits(ctx context.Context, sessionID string) ([]*models.SessionCommit, error)
GetLatestSessionCommit(ctx context.Context, sessionID string) (*models.SessionCommit, error)
DeleteSessionCommit(ctx context.Context, id string) error