Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): render citations in queued messages #12403

Mergedmaria-rcksmerged 1 commit intomain fromrefs/pull/12403/headmerged by maria-rcks View on GitHub

maria-rckscommented

Queued 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:

Queued assistant citation showing raw markup

After:

Queued assistant citation rendered as a chip

Written by gpt-6-astra using Codex.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Approvability

      Verdict: Approved at 192425f

      Macroscope'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).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      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.tsx
      QueuedMessageTimelineRow now uses UserMessageBody to render queued prompts. The renderContextReference prop 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, juliusmarminge

      Merge Risk: ⚪ Minimal · up to 19242

      Queued citations remain readable and render as citation chips without changing queue payloads or controls.

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Linked Issues check✅ PassedThe change directly addresses #12331. QueuedMessageTimelineRow now uses the existing memoized UserMessageBody with skills and markdownCwd instead of plain text rendering. This reuses the sent-…
      Out of Scope Changes check✅ PassedThe whole-PR diff contains only the queued-message renderer update and the supporting optional renderContextReference prop change in apps/web/src/components/chat/MessagesTimeline.tsx. Both changes…
      Docstring Coverage✅ PassedDocstring 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✅ PassedThe title clearly and concisely describes the main change: rendering citations in queued web messages.
      Description check✅ PassedThe 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.
    4. maria-rcks merged this5d9e27a

    5. maria-rcks closed this

Sign in to join this conversation.