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 |
|
Matthew Meszaros
|
56de65380b
|
feat: inbox agent that drafts a suggested unibox reply on inbound human replies for human approve/edit/discard - paid + per-org opt-in (organizations.inbox_agent_enabled) feature where the consumer's reply hook, on a non-automated reply, detaches a goroutine (panic-contained, never blocks ingest) that checks entitlement, dedupes via ai_thread_drafts partial unique indexes (one pending per thread, unique source_message_id), pre-checks balance, grounds a reply in the thread history + org voice + skills via generation.Provider.Complete, reserves a draft row then charges 5 credits (idempotency inbox_agent:<draft.ID>, row unwound on a fresh context if the charge fails so no unpaid draft lingers), and emits an org-scoped AI_DRAFT_READY event gated on access_unibox; the agent never sends - only a human POST to /unibox/agent-drafts/:id/approve sends through the normal reply path, claiming pending->approved before send with an approved->pending revert on send failure, alongside list + discard endpoints; plus the unibox awaiting_agent_draft badge + agent_drafts search scope, an AgentDraftCard in the thread view with inline-editable approve-and-send/discard, the workspace settings opt-in toggle, CanUseInboxAgent paid gate, migration 000065, and docs (inbox-agent guide, endpoints, realtime)
|
2026-07-14 06:13:27 +02:00 |
|