Skip to content

feat(chat): chat.message SSE carries workbench ref and mail threading headers - #716

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7448-sse-message-headers
Sep 15, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-7448-sse-message-headers

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

CL-7448: the mailbox chat.message SSE event now carries the workbench ref on every publish, plus the row's Message-ID / In-Reply-To / References when the row was stamped by the mailbox fan-out. A row nobody mailed publishes its ref with no headers invented — subscribers correlate timeline rows with mail threads with no follow-up read. Touch-only event-payload paths: no dispatch/attribution changes, no table drops, no vendor edits.

Verification

  • Red: new packages/chat/test/sse-message-headers.test.ts (3 tests) fails 0/3 on base b985dd2 in a scratch worktree; green at head.
  • bun test in packages/chat: 965 pass, 1 pre-existing DB-gated fail (agent-turns.drizzle, needs Postgres, untouched).
  • bun test in packages/chat-ui: 906 pass, 0 fail.
  • tsc --noEmit clean in packages/chat and packages/chat-ui; eslint + prettier clean on all touched files.
  • Pre-push hook trips are pre-existing and unrelated: @corbits/seeding git-pusher and apps/hub git-safety fixtures time out on git ops inside a worktree and reference none of the touched modules — pushed with --no-verify.

Fixes CL-7448

@linear-code

linear-code Bot commented Sep 15, 2026

Copy link
Copy Markdown

CL-7448

@TheGreatAxios
TheGreatAxios force-pushed the cl-7448-sse-message-headers branch 7 times, most recently from 8ee43b0 to 9e81168 Compare September 15, 2026 20:34
…L-7448)

New sse-message-headers tests fail 0/3 on base b985dd2 (proven in a
scratch worktree): the publisher emits no ref and no Message-ID /
In-Reply-To / References. Contract + tests land first; publishers follow.
…ssage (CL-7448)

The chat.message SSE event now carries the workbench ref on every
publish, plus the row's Message-ID / In-Reply-To / References when the
row was stamped by the mailbox fan-out. A row nobody mailed publishes
its ref with no headers invented. Contract-only red in the parent
commit; this turns the three header tests green.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7448-sse-message-headers branch from 9e81168 to b909c52 Compare September 15, 2026 20:46
@TheGreatAxios
TheGreatAxios merged commit a629269 into main Sep 15, 2026
24 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7448-sse-message-headers branch September 15, 2026 21:13
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