fix(web): render citations in queued messages #12403
main fromrefs/pull/12403/head·merged by maria-rcks View on GitHubQueued follow-ups exposed raw t3-citation:// links. Reuse the sent user-message renderer so assistant quotes render as citation chips while preserving the queue payload and send/cancel actions.
Fixes #12331.
Validation: Blacksmith web typecheck, scoped lint (0 errors), and 183 existing queue/timeline tests passed. In the real web client with Codex, cited an assistant response, queued it during a running tool, canceled back to the composer, requeued, and verified both Send now and automatic delivery. The provider answered the quoted request. Web and desktop share this renderer; mobile is unchanged.
Before:

After:

Written by gpt-6-astra using Codex.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
192425fMacroscope's review found this PR approvable — This is a four-line, single-file fix that reuses the existing user-message markdown renderer so queued citations display consistently, without changing queue behavior or data contracts. No product defaults, static-analysis suppressions, or sensitive packages are affected.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
045f675d-b53b-4b21-9b87-cd4b0ef8b17a📥 Commits
Reviewing files that changed from the base of the PR and between 7a2cce826852c3a3255d7c7aa1e9c148287eba2c and 192425f1c22aee7bf8e27bb069d4aaa1e4279ef1.
📒 Files selected for processing (1)
apps/web/src/components/chat/MessagesTimeline.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough#
Changes#
Queued message rendering
Layer / File(s) Summary Render queued prompts as markdown
apps/web/src/components/chat/MessagesTimeline.tsxQueuedMessageTimelineRownow usesUserMessageBodyto render queued prompts. TherenderContextReferenceprop is optional, so queued prompts can omit context-reference chips.Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested reviewers:
t3dotgg,juliusmarmingeMerge Risk: ⚪ Minimal · up to
19242Queued citations remain readable and render as citation chips without changing queue payloads or controls.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation Linked Issues check ✅ Passed The change directly addresses #12331.QueuedMessageTimelineRownow uses the existing memoizedUserMessageBodywithskillsandmarkdownCwdinstead of plain text rendering. This reuses the sent-…Out of Scope Changes check ✅ Passed The whole-PR diff contains only the queued-message renderer update and the supporting optional renderContextReferenceprop change inapps/web/src/components/chat/MessagesTimeline.tsx. Both changes…Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Title check ✅ Passed The title clearly and concisely describes the main change: rendering citations in queued web messages. Description check ✅ Passed The description explains what changed, why it changed, validation performed, issue linkage, and UI results with before/after screenshots. It does not use the template headings or checklist, but the re… ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
Comment `@coderabbitai help` to get the list of available commands.maria-rcks merged this5d9e27a
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes