Skip to content

mailbox send: a finished worker answers 409 with a plain message (CL-9908) - #1103

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-9908-terminal-run-send
Oct 5, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-9908-terminal-run-send

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Problem: sending a chat message to a finished worker showed "The workbench could not be reached (500)." The stock trigger route answers 409 workflow_run_terminal; the mailbox deliver threw a plain Error, which the mailbox mount does not catch, so Hono returned 500.

Fix: the deliver rethrows a 409 as an HTTPException(409) (not reported as an error); the web maps 409 to "This worker has finished its work and can't take new messages." Other statuses unchanged.

Reproduced: new tests failed on origin/main code (hub got 500 instead of 409; web got the unreachable message).

Gates: focused tests (apps/hub mailbox-send.test.ts, apps/web threads-api.test.ts), tsc for apps/hub and apps/web, lint, fmt:check. Full typecheck/test skipped: machine load > 200.

@linear-code

linear-code Bot commented Oct 4, 2026

Copy link
Copy Markdown

CL-9908

@TheGreatAxios
TheGreatAxios merged commit b2b6865 into main Oct 5, 2026
5 of 6 checks passed
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