Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): queued follow-ups show the quoted text instead of the citation link #18999

MergedMnigos(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/18999/headmerged by juliusmarminge View on GitHub

Queued follow-ups containing assistant citations display the serialized link instead of the quoted text, often hiding the useful part of the message behind truncation. Queue previews now pass their display text through the existing citation-to-text converter. Editing still receives the original text, and queue operations keep the same run and message identifiers.

Maintainer takeover of @Mnigos’s #18999, merged with current main and kept to web queue previews. The shared converter and citation expansion behavior are unchanged.

Verification:

  • Reduced two added tests to one combined Chromium regression in the existing queue-control browser suite: six tests before, five after. Removing the production conversion gives one failure and four passes; restoring it gives five passes.
  • Web typecheck, scoped lint, and diff checks pass. One parallel adversarial review round with Claude and Codex returned no code findings.
  • Live Linux web app with isolated synthetic state: quote-only and quote-plus-text previews, collapse/expand, Edit and Cancel. The editor retains the original citation chip and accompanying text. No provider turn was started. Server-side promotion, reorder, cancellation and delivery were not exercised by this display fixture.
  • Matching 1280×800 base/head captures use the actual main and rebuilt component with identical data and scroll. Liberation Sans was supplied temporarily for the headless host’s missing font configuration; no proof assets are committed.
  • macOS, Windows, iOS, Android, and Electron desktop were not verified. Desktop uses the same web component; mobile is outside this queue-preview fix.

Before:

Before: queue previews expose raw citation links

After:

After: queue previews show the quoted text

Editing preserves the citation:

Editing a queued follow-up retains its citation and surrounding text

Implemented through T3 Code with Codex gpt-6.1-sol; tests by Codex gpt-6-astra; adversarial reviews by Claude claude-opus-5-5 and Codex gpt-6-sol.

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

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 1880237

      Macroscope's review found this PR approvable — This focused bug fix changes only how queued follow-up previews display assistant citations while preserving the original citation data for editing. A browser regression test covers citation-only and mixed-text previews, with no schema, configuration, or broader workflow changes.

      No code changes detected at 92e123e. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. juliusmarminge added labelsmacroscope-review

    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 39039a50-2ea9-4884-8f83-c0720c4db754
      📥 Commits

      Reviewing files that changed from the base of the PR and between 6551563e4bd246d7150c07866274725086be4818 and 92e123ee373137e3c1a0b80ee81e29fb4313ac93.

      📒 Files selected for processing: 2
      • apps/web/src/components/chat/QueuedRunsControl.browser.test.tsx
      • apps/web/src/components/chat/QueuedRunsControl.tsx

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

      📝 Walkthrough

      Queued-run previews now convert assistant citations to plain text. Image-reference labels remain hidden when thumbnails are displayed. Editing a queued message preserves the original citation text.

      Changes: Queued citation previews

      Layer / File(s)Summary
      Preview rendering and edit coverage
      apps/web/src/components/chat/QueuedRunsControl.tsx, apps/web/src/components/chat/QueuedRunsControl.browser.test.tsx
      Queued previews convert assistant citations to plain text. Browser tests cover citation-only and citation-plus-text previews and verify that editing passes the unchanged citation text to onEditQueuedRun.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix · Severity of issue fixed: Low

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 92e12

      Queued follow-up previews now show readable quoted text instead of serialized citation links. Editing still uses the original text, and no actionable merge risk was found.

      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title is concise, uses the repository’s conventional format, and clearly describes the queued follow-up preview fix.
      Description checkPassedThe description explains the problem, change, scope, approval context, verification results, screenshots, limitations, and agent usage. It satisfies the required template information.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
      Comment `@coderabbitai help` to get the list of available commands.
    5. Nice fix. Since this leaves the mobile queue sheet for its own change, I've narrowed #19007 to cover just that, using the same helper, so the two don't overlap.

    6. juliusmarminge assignedjuliusmarminge

    7. Taking over this one. I’ll keep it limited to readable queued-message previews, preserve the original text for editing, and verify the display and queue actions against current main.

    8. juliusmarminge merged this8f77861

    9. juliusmarminge closed this

Sign in to join this conversation.