fix: history round

* fix: agent rerun delete run record
* fix: history round

See merge request: !897
This commit is contained in:
李俊文
2025-07-22 10:08:42 +00:00
parent c2ee668370
commit 18d1f81bad
2 changed files with 19 additions and 12 deletions

View File

@@ -69,6 +69,12 @@ func (c *ConversationApplicationService) Run(ctx context.Context, sseSender *sse
if msgMeta.UserID != conv.Int64ToStr(userID) {
return errorx.New(errno.ErrConversationPermissionCode, errorx.KV("msg", "message not match"))
}
err = c.AgentRunDomainSVC.Delete(ctx, []int64{msgMeta.RunID})
if err != nil {
return err
}
delErr := c.MessageDomainSVC.Delete(ctx, &msgEntity.DeleteMeta{
RunIDs: []int64{msgMeta.RunID},
})