fix(archied): post each reportable status a chat task reaches, recorded by status not by flag

This commit is contained in:
sam committed 2026-10-25 02:42:31 +11:00
1 parent 1a386dae7e
commit 4e2edc911f
13 files changed
+85 -51

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ func postPendingOutcomes(ctx context.Context, tasks storecontract.OutcomePoster,
continue
}
}
if err := tasks.MarkOutcomePosted(ctx, t.ID); err != nil {
if err := tasks.MarkOutcomePosted(ctx, t.ID, t.Status); err != nil {
log.Warn("mark task outcome posted", "task", t.ID, "err", err)
}
if delivered {
+1 -1
View File
@@ -18,7 +18,7 @@ func (s *outcomeStore) UnpostedOutcomes(context.Context) ([]*task.Task, error) {
return []*task.Task{{ID: 7, Origin: "web:chat-1"}}, nil
}
func (s *outcomeStore) MarkOutcomePosted(_ context.Context, id int64) error {
func (s *outcomeStore) MarkOutcomePosted(_ context.Context, id int64, _ string) error {
s.posted = append(s.posted, id)
return nil
}