Skip to content

fix(hub): show a received message before the coordinator saves it - #176

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-12081-show-a-sent-message-after-a-reload-while-the-coordinator-is
Nov 4, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-12081-show-a-sent-message-after-a-reload-while-the-coordinator-is

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-12081

After a reload, the conversation's turns came only from the coordinator's saved conversation, which saves the person's message together with its reply, so the message was missing until the reply arrived. The run's event log already holds the message as soon as it is received, in a SignalReceived event carrying the mail.

The hub now adds a person's received mail to the turns while no saved person turn is as late as its receipt, reading its text the same way as the saved copy, and drops it once the coordinator saves the message. Mail from workflow runs and non-mail signals such as approval decisions are left out.

Verified with a unit test of the projection (a received message reads as a turn until a saved copy exists, run mail is ignored) and with lint, format:check, typecheck, test and pins:verify.

@linear-code

linear-code Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

CL-12081

CL-12149

@TheGreatAxios
TheGreatAxios force-pushed the cl-12081-show-a-sent-message-after-a-reload-while-the-coordinator-is branch from 7ff5f0c to 80dab3d Compare November 4, 2026 22:42
@TheGreatAxios

Copy link
Copy Markdown
Contributor Author

Checked on a throwaway stack with a model that replies after 12s: send a message, reload mid-reply, reload again after the reply. On main the message was missing mid-reply in 2/2 rounds; on this branch it showed once in 3/3 rounds and the saved copy replaced it without a duplicate (gist).

Before (main), mid-reply After, mid-reply After, reply landed
before after after-reply

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review November 4, 2026 22:48
@corbits-triage

corbits-triage Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Merged before Triage finished on 80dab3d.

@TheGreatAxios
TheGreatAxios merged commit f06e8f8 into main Nov 4, 2026
9 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