Skip to content

fix: await router calls so unroutable trigger mail is not dropped - #24

Closed
TheGreatAxios wants to merge 1 commit into
mainfrom
cl-10188-await-the-routers-routemail-so-unroutable-trigger-mail-is
Closed

TheGreatAxios wants to merge 1 commit into
mainfrom
cl-10188-await-the-routers-routemail-so-unroutable-trigger-mail-is

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Await routeMail and sendRunGrants in the run-trigger deliverer and type both as boolean | Promise<boolean>, so a router that resolves false raises RunTriggerUnroutableError instead of being accepted and dropped.
Added regression tests with async routers returning false for each call; both failed before the fix.
Verified with bun run check (typecheck, lint, format, tests).

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review · Approve

The run-trigger deliverer awaits sendRunGrants and routeMail, so a router resolving false raises RunTriggerUnroutableError instead of accepting and dropping the mail.

No findings.

@TheGreatAxios
TheGreatAxios deleted the cl-10188-await-the-routers-routemail-so-unroutable-trigger-mail-is branch October 8, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant