@devries-cameron20 / t3code-1 / commits / cbe43566f4
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Nishchay M Chandra committed Oct 19, 2026 at 01:02 UTC cbe43566f416bb661b2b02c60d814665f897f232
2 files changed +30 -1
apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts
+27
@@ -1,3 +1,4 @@
1 +import { formatAssistantCitationHref } from "@t3tools/shared/assistantCitations";
2 import { describe, expect, it } from "vite-plus/test";
3
4 import {
@@ -10,6 +11,32 @@ import {
11 import { threadDragGapOffset } from "./threadDragGap";
12
13 describe("threadQueueControlPresentation", () => {
14 + it("shows an assistant quote as its quoted text", () => {
15 + const href = formatAssistantCitationHref({
16 + version: 1,
17 + environmentId: "environment:test" as never,
18 + threadId: "thread:test" as never,
19 + messageId: "message:assistant" as never,
20 + text: "Retry the sync after the lock clears.",
21 + start: 0,
22 + end: 37,
23 + prefix: "",
24 + suffix: "",
25 + });
26 + const controls = resolveThreadQueueRowControls({
27 + busy: false,
28 + canPromoteToSteer: true,
29 + canReorder: true,
30 + index: 0,
31 + queuedCount: 1,
32 + text: `[Assistant quote](${href}) Can we add a backoff here?`,
33 + });
34 +
35 + expect(controls.displayText).toBe(
36 + "Retry the sync after the lock clears. Can we add a backoff here?",
37 + );
38 + });
39 +
40 it("preserves queue reorder and steer controls with removal", () => {
41 const controls = resolveThreadQueueRowControls({
42 busy: false,
apps/mobile/src/features/threads/threadQueueControlPresentation.ts
+3 -1
@@ -1,4 +1,5 @@
1 import type { EnvironmentId, RunId, ThreadId } from "@t3tools/contracts";
2 +import { assistantCitationsToPlainText } from "@t3tools/shared/assistantCitations";
3
4 export const REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL = "Remove queued message";
5
@@ -34,7 +35,8 @@ export function resolveThreadQueueRowControls(input: {
35 canMoveUp: mutationEnabled && input.canReorder && input.index > 0,
36 canSteer: mutationEnabled && input.canPromoteToSteer && !isEditing,
37 dismissAccessibilityLabel: REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL,
37 - displayText: input.text,
38 + // Edit and Steer keep the original text so quoted citations stay linked.
39 + displayText: assistantCitationsToPlainText(input.text),
40 isEditing,
41 };
42 }