Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

fix(drafting): stop post-meeting draft rewrites from being detached and deleted

merged#2878CedarCopilot

CedarCopilot wants to merge 3 commits into staging from fix/sherlock-post-meeting-draft-thread-and-cleanup-20260922-084120

What Libra verified

  • Non-post-meeting thread selection remains unchanged

    Libra ran this behavior against the change and confirmed the check detects when it breaks.

    Technical evidence
    • a non-post-meeting draft keeps a non-empty agent threadId as the selected thread
    • a non-post-meeting draft with an empty agent threadId produces a new thread
    • a non-post-meeting draft with no agent threadId uses the event thread fallback
    • a non-post-meeting draft with no agent threadId or event thread produces a new thread

    Changed code: threadMetadataUtils.ts.

run d430d5b9-db46-407b-a511-1699226e19ee, completed Sep 22, 2026, 9:37 AM