ready to merge and ready to discard as states

This commit is contained in:
Ian Gulliver
2026-10-19 17:53:54 -07:00
parent fb79919ebb
commit 2bb527aca0
11 changed files with 394 additions and 293 deletions
+4
View File
@@ -27,6 +27,10 @@ func (s *Store) CreateInboxItem(ctx context.Context, item api.InboxItem) error {
if err != nil {
return err
}
_, err = tx.ExecContext(ctx, `UPDATE tasks SET ready = '' WHERE id = ?`, item.TaskId)
if err != nil {
return err
}
return emitItem(ctx, tx, emit, "inbox.created", item.Id, agentActor)
})