The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 12:15 UTC
fix(mobile): queued messages show mentions and files by name, not as raw links (#32224)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
MarcoDotIO committed
Nov 15, 2026 at 00:13 UTC
a9e900f9c06cfa9506d5811a266428ca64681a19
2 files changed
+36
-2
apps/mobile/src/features/threads/threadQueueControlPresentation.test.ts
+29
@@ -1,4 +1,6 @@
1
+import { ComposerContextId } from "@t3tools/contracts";
2
import { formatAssistantCitationHref } from "@t3tools/shared/assistantCitations";
3
+import { formatComposerContextReference } from "@t3tools/shared/composerContextReferences";
4
import { describe, expect, it } from "vite-plus/test";
5
6
import { resolveThreadQueueRowControls } from "./threadQueueControlPresentation";
@@ -47,6 +49,33 @@ describe("threadQueueControlPresentation", () => {
49
);
50
});
51
52
+ it("shows context chips by their labels", () => {
53
+ const environment = formatComposerContextReference({
54
+ kind: "environment",
55
+ contextId: ComposerContextId.make("environment_mac"),
56
+ label: "MacBook",
57
+ });
58
+ const file = formatComposerContextReference({
59
+ kind: "file",
60
+ contextId: ComposerContextId.make("report"),
61
+ label: "report.pdf",
62
+ });
63
+ const image = formatComposerContextReference({
64
+ kind: "image",
65
+ contextId: ComposerContextId.make("screenshot"),
66
+ label: "screenshot.png",
67
+ });
68
+
69
+ expect(
70
+ resolveThreadQueueRowControls({
71
+ busy: false,
72
+ canPromoteToSteer: true,
73
+ canSendNow: false,
74
+ text: `Check ${environment} for ${file} ${image} `,
75
+ }).displayText,
76
+ ).toBe("Check MacBook for report.pdf screenshot.png");
77
+ });
78
+
79
it("keeps the row already open in the composer from being reopened or steered", () => {
80
const editing = resolveThreadQueueRowControls({
81
busy: false,
apps/mobile/src/features/threads/threadQueueControlPresentation.ts
+7
-2
@@ -1,6 +1,9 @@
1
import type { EnvironmentId, RunId, ThreadId } from "@t3tools/contracts";
2
import { assistantCitationsToPlainText } from "@t3tools/shared/assistantCitations";
3
-import { isAttachmentOnlyBootstrapPrompt } from "@t3tools/shared/composerContextReferences";
3
+import {
4
+ isAttachmentOnlyBootstrapPrompt,
5
+ replaceComposerContextReferences,
6
+} from "@t3tools/shared/composerContextReferences";
7
8
export const REMOVE_QUEUED_MESSAGE_ACCESSIBILITY_LABEL = "Remove queued message";
9
@@ -38,7 +41,9 @@ export function resolveThreadQueueRowControls(input: {
41
// Editing and sending keep the original text so quoted citations stay linked.
42
displayText: isAttachmentOnlyBootstrapPrompt(input.text)
43
? ""
41
- : assistantCitationsToPlainText(input.text),
44
+ : assistantCitationsToPlainText(
45
+ replaceComposerContextReferences(input.text, (reference) => reference.label),
46
+ ).trim(),
47
isEditing,
48
};
49
}