You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: relay deliverToSandbox writes to mail/new not mail/inbox/new
relay.ts:deliverToSandbox() was constructing the delivery path as:
<branchRoot>/inbox/new/
but tps mail check reads from:
<branchRoot>/new/ (via getInbox().fresh)
This meant delivered messages were silently dropped — the inbox check
never found them.
Fix: derive the delivery directory from branchRoot() directly and append
/new/, consistent with resolveDeliveryPath() which already returns the
mail root. One-time migration moves any orphaned messages from the old
inbox/new/ dir into new/ on next delivery.
Also exports resolveAgentMailRoot() so external callers (bootstrap) can
derive the same path without reimplementing the lookup logic.
Changes:
- relay.ts: deliverToSandbox uses branchRoot()+/new; migrate inbox/new
- relay.ts: export resolveAgentMailRoot()
- bootstrap.ts: healthMail/sendIntroduction use resolveAgentMailRoot
- Tests updated to assert the canonical mail/new path
/** Returns the mail root dir for an agent (branch-office or team workspace). Used by deliverToSandbox and external callers that need to read delivered messages. */
0 commit comments