Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): show assistant quotes as text in the queue sheet #19007

MergedGLDRoger(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/19007/headmerged by juliusmarminge View on GitHub

Problem

The mobile queue sheet shows assistant quotes as raw [Assistant quote](t3-citation://v1/...) links. The row is a single line, so the long internal URL fills it and hides the quoted text.

Change

The row's display text now goes through the shared assistantCitationsToPlainText helper, so the quoted text shows instead of the link. Only the displayed text changes: Edit and Steer still use the original text, so the citation link survives.

Scope and approval

Part of #18987, which is triaged (accepted); the maintainer's comment names this helper as the fix. #18999 fixes the web Queued panel and explicitly leaves the mobile sheet "for its own change". This PR is that change, and it touches only apps/mobile.

Verification

Reproduced on the iOS simulator (iPhone 17 Pro, iOS 26.5) with the T3 Code Dev client paired to a local dev server. A follow-up quoting a real assistant reply was queued behind a turn, and the queue was held after a server restart.

Before (main)After
Mobile queue sheet before: raw citation linkMobile queue sheet after: quoted text
  • vp test run apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts: 8 passed. The new case queues a quote followed by text and checks that the row shows the quoted text and the follow-up, with no link.
  • Reverting only the production change makes the new test fail. Restoring it: all pass.
  • Mobile typecheck passes.

Note: building the iOS client on Xcode 27.0 currently fails on 27.1-only hinge APIs, which #18913 fixes. For these screenshots I disabled that block locally; it is not part of this PR.

Not checked: Android.

Model: Claude Opus 5.5. Harness: T3 Code (Claude Code).

🤖 Generated with Claude Code

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

    2. GLDRoger(GitHub profile, opens in a new tab) changed the title

    3. Note

      This comment is posted by Julius' dot

      The mobile queue screenshots are still pending. Please attach before/after images showing the raw citation link replaced by the quoted text, as required by the verification guide. Once they're attached, mark this ready for review so triage can reassess.

    4. Before/after screenshots are now in the description, under Verification. They're from the iOS simulator (iPhone 17 Pro, iOS 26.5) with T3 Code Dev paired to a local dev server: the same queued quote shows the raw t3-citation:// link on main and the quoted text with this change.

    5. chatgpt-codex-connector[bot](GitHub profile, opens in a new tab)commented

      Codex Review Summary

      This comment shows the latest Codex review activity on this pull request.

      ReviewStatusCommitReview trigger
      📝 Code Review✅ Completed 2026-10-13T10:59:59.266732Z0f39371Draft marked ready
      ℹ️ About Codex in GitHub

      Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

      • Open a pull request for review
      • Mark a draft as ready
      • Comment "@codex review" or "@codex security review".

      Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    6. juliusmarminge added labelsmacroscope-review

    7. 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: af5e4c0d-78d9-49c1-9268-04c52a7b6e17
      📥 Commits

      Reviewing files that changed from the base of the PR and between 41a96468847267239c2d4caebe40febee101185d and 6a35a35c5bdd76fd62a60628847011d888e9f570.

      📒 Files selected for processing: 1
      • apps/mobile/src/features/threads/threadQueueControlPresentation.ts

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

      📝 Walkthrough

      Queue row display text now converts assistant citations to plain text. Edit and Steer retain the original message text. A test checks that the display includes the citation’s quoted text and the surrounding question.

      Changes: Queue citation display

      Layer / File(s)Summary
      Citation display conversion
      apps/mobile/src/features/threads/threadQueueControlPresentation.ts, apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts
      Queue row display text uses assistantCitationsToPlainText. The test checks that a citation’s quoted text replaces its Markdown link while the surrounding question remains.

      Priority: ⬇️ Low

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

      Change: Bug fix

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 6a35a

      Queued rows show readable citation text while Edit retains the original citation markup. No actionable merge risk remains.

      ### Architecture Summary

      Architecture risk: 🔵 Low · up to 6a35a

      The change affects 1 system.

      Changed systems: apps/mobile

      Architecture concerns No architecture-level concerns identified.

      Review details

      Systems and components

      • observed — apps/mobile (service) was modified; 2 changed files map to changed impact.

      Before / after behavior

      • observed — Modified behavior in apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts: Adds the formatAssistantCitationHref import used by the new citation-display test.
      • observed — Modified behavior in apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts: Adds a test that formats an assistant citation, passes it in queued-message text, and expects the row’s display text to contain the quoted text followed by the surrounding question, without the Markdown link.
      • observed — Modified behavior in apps/mobile/src/features/threads/threadQueueControlPresentation.ts: Added the assistantCitationsToPlainText import.
      • observed — Modified behavior in apps/mobile/src/features/threads/threadQueueControlPresentation.ts: Added a comment about preserving the original text for Edit and Steer, and changed displayText to use assistantCitationsToPlainText(input.text) instead of returning input.text unchanged.
      Pre-merge checks: Passed 4
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the primary mobile queue-sheet change.
      Description checkPassedThe description covers the problem, change, scope and approval, verification results, screenshots, limitations, and agent details. It provides sufficient evidence for the focused UI fix.
      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.
    8. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 0f39371

      Macroscope's review found this PR approvable — This is a narrowly scoped mobile queue presentation fix that replaces raw assistant-citation URLs with readable quoted text while preserving the original text for editing and steering. The behavior is covered by a focused test, with no schema, configuration, or broader runtime changes.

      No code changes detected at 6a35a35. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    9. juliusmarminge merged thiscbe4356

    10. juliusmarminge closed this

Sign in to join this conversation.