Accept sessioned autonomous run logs

This commit is contained in:
npc0-hue
2026-08-29 10:36:32 +08:00
parent bc10cd7400
commit 35a272ce23
2 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func (svc *CoreService) ensureRunLogStreamForBatch(batch domain.LogBatchIngest,
expectedStreamID = runSessionLogStreamID(batch.RunEndpointID, batch.ServerInstanceID, batch.LogSessionID, batch.StreamKey)
}
if batch.LogStreamID != expectedStreamID {
if batch.LogSessionID != "" || !legacyAutonomousLogStream(batch) {
if !legacyAutonomousLogStream(batch) {
return repo.ErrNotFound
}
}