Skip to content

feat(conversations): Show pending mailbox messages in transcript - #1407

Merged
dcramer merged 11 commits into
mainfrom
feat/pending-mailbox-transcript
Aug 11, 2026
Merged

dcramer merged 11 commits into
mainfrom
feat/pending-mailbox-transcript

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Accepted inbound messages sit in the Redis mailbox until a worker drains them into durable history. The dashboard transcript only showed committed history, so web and Slack sends looked empty until the turn started.

This adds a mailbox read path and wires it into the transcript UI.

API

  • GET /api/conversations/:id/pending-messages
  • returns accepted human-facing mailbox rows (web, slack)
  • includes delivery (defer | interrupt), stable messageId, source, actor, and text
  • respects the same private-content access rules as conversation detail

Dashboard

  • polls the mailbox with live conversations
  • appends pending rows after committed history
  • drops a pending row once the same messageId appears in history
  • shows pending styling plus delivery labels:
    • Queued after current turn
    • Interrupts current turn

Checks

  • pnpm --filter @sentry/junior exec tsc -p tsconfig.json --noEmit
  • pnpm --filter @sentry/junior-dashboard exec tsc -p tsconfig.json --noEmit
  • pnpm --filter @sentry/junior exec vitest run tests/integration/api/conversations/pending-messages.test.ts
  • pnpm --filter @sentry/junior-dashboard exec vitest run tests/pending-mailbox-transcript.test.ts

Refs #1402

Requested by U039RR91S.

--

View Junior Session [Sentry]

Expose accepted Redis mailbox rows through a conversation pending-messages
API and render them in the dashboard transcript until history commits.
Preserve interrupt vs defer delivery labels and drop pending rows once the
same message id appears in durable history.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 11, 2026 1:35am

Request Review

Give local visual QA an active conversation with interrupt and defer
mailbox rows so the pending transcript UI can be inspected without a
live worker backlog.

Co-Authored-By: David Cramer <[email protected]>
Oxlint --deny-warnings failed CI on a redundant conditional object spread.
Render accepted mailbox messages as a continuous card above the composer.
Share one cyan fill, keep only outer corners rounded, and separate rows with
a hairline instead of gaps.

Co-Authored-By: David Cramer <[email protected]>
Replace interrupt/queued and Slack text labels with compact icons so
pending rows stay scannable in the stacked mailbox treatment.

Co-Authored-By: David Cramer <[email protected]>
Move accepted mailbox rows out of the transcript and sit them flush
above the composer. Fix the active mock fixture so the composer shows
for visual QA, and use skip-forward / clock icons for interrupt vs queue.

Co-Authored-By: David Cramer <[email protected]>
Use the dashboard Tooltip for Slack, interrupt, and queued icons with
short labels so the icon-only meta stays readable on hover.

Co-Authored-By: David Cramer <[email protected]>
@dcramer
dcramer marked this pull request as ready for review August 11, 2026 01:29
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 11, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6149915. Configure here.

Filter composer-attached mailbox rows by committed messageId so a send
does not render twice after workers persist the user message.
@dcramer
dcramer merged commit 043ccaf into main Aug 11, 2026
37 checks passed
@dcramer
dcramer deleted the feat/pending-mailbox-transcript branch August 11, 2026 01:42

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0a35c9bc Deployed Aug 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant