Commit Graph
5 Commits
Author SHA1 Message Date
Matthew Meszaros 6280c67d3b feat: give an AI draft retargeted at a newer inbound message a new id, so an approval of the version a reviewer saw (from any client, including one loaded before the deploy) sends nothing, in place of the optional source_message_id approval guard, with live Postgres regressions and the by-thread upsert docs 2026-11-07 12:55:42 +01:00
Matthew Meszaros 3c8512a7de feat: let AI draft approval name the source message the reviewer saw and refuse a draft retargeted since with 409 draft_retargeted, sent by the dashboard draft card, with handler, live Postgres and card regressions and the endpoint and error-code docs 2026-11-07 12:36:57 +01:00
Matthew Meszaros 5c01c0c7d6 feat: approve inbox-agent drafts with one tenant- and mailbox-scoped UPDATE ... RETURNING claim that sends exactly the claimed snapshot, scope the by-thread upsert's pending UPDATEs to the organization, match resolved drafts by source message with the creation-time fallback only for rows without one, and add live Postgres regressions for approval/upsert races and late-arriving inbound mail 2026-11-07 12:14:58 +01:00
Eliran Yihye 3ab15e1117 feat: retarget a pending AI draft at the newest inbound message on upsert (recipient, subject, threading, mailbox), follow replaced drafts in the card unless edited, reject NUL bytes with 400 and scan the whole thread for the newest inbound 2026-10-29 11:12:11 -04:00
Eliran Yihye b2382fda9e feat: add PUT /unibox/ai-drafts/by-thread so an API key can upsert the pending reply draft for a thread's newest inbound message without a user session, with repository transaction, tests and API docs 2026-10-29 10:52:20 -04:00