@devries-cameron20 / t3code Mirror · read-only / commits / ddab437d00
Fork 0

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 23, 03:00 UTC

fix(mobile): sent steer and queued messages are marked like desktop (#21417)

oliver committed Oct 18, 2026 at 21:24 UTC ddab437d00de2a148ea3a518df5b9cca2889edfc
3 files changed +33 -45
apps/mobile/src/features/threads/ThreadFeed.tsx
+18 -20
@@ -1297,30 +1297,28 @@ function renderFeedEntry(
1297 </View>
1298 <View className="mt-1 flex-row items-center justify-end gap-1 pr-0.5">
1299 {intentBadge ? (
1300 - <Pressable
1301 - accessibilityRole="button"
1300 + <View
1301 + accessible
1302 accessibilityLabel={intentBadge.accessibilityLabel}
1303 - accessibilityHint="Explains this message's badge"
1304 - hitSlop={8}
1305 - onPress={() => Dialog.alert("Message history", intentBadge.explanation)}
1306 - className={cn(
1307 - "rounded-full border px-1.5 py-0.5",
1308 - intentBadge.tone === "queued"
1309 - ? "border-adaptive-amber-500-a25-400-a25 bg-adaptive-amber-500-a10-400-a10"
1310 - : "border-adaptive-sky-500-a25-400-a25 bg-adaptive-sky-500-a10-400-a10",
1311 - )}
1303 + className="flex-row items-center gap-1"
1304 >
1313 - <Text
1314 - className={cn(
1315 - "font-t3-medium text-2xs tracking-wide",
1316 - intentBadge.tone === "queued"
1317 - ? "text-adaptive-amber-700-300"
1318 - : "text-adaptive-sky-700-300",
1319 - )}
1320 - >
1305 + {intentBadge.icon ? (
1306 + <SymbolView name={intentBadge.icon} size={12} tintColor={iconSubtleColor} />
1307 + ) : null}
1308 + <Text className="font-t3-medium text-xs text-foreground-secondary">
1309 {intentBadge.label}
1310 </Text>
1323 - </Pressable>
1311 + </View>
1312 + ) : null}
1313 + {intentBadge ? (
1314 + <Text
1315 + accessible={false}
1316 + accessibilityElementsHidden
1317 + importantForAccessibility="no"
1318 + className="font-t3-medium text-xs text-foreground-secondary"
1319 + >
1320 + ·
1321 + </Text>
1322 ) : null}
1323 <Text className="font-t3-medium text-xs tabular-nums text-foreground-secondary">
1324 {entry.pendingMessage && !entry.acknowledged ? "Pending" : timestampLabel}
apps/mobile/src/features/threads/userMessageIntentBadge.test.ts
+6 -11
@@ -10,30 +10,25 @@ describe("user message intent badge", () => {
10
11 it("explains the queued history without claiming delivery", () => {
12 expect(resolveUserMessageIntentBadge("queued_turn")).toEqual({
13 - label: "from queue",
13 + label: "From queue",
14 accessibilityLabel: "Queued while the agent was busy",
15 - explanation:
16 - "This badge records that the message was queued. It stays visible after the message leaves the queue.",
17 - tone: "queued",
15 + icon: null,
16 });
17 });
18
19 it("explains the intent to steer without claiming delivery", () => {
20 expect(resolveUserMessageIntentBadge("steer")).toEqual({
23 - label: "steer",
21 + label: "Steer",
22 accessibilityLabel: "Steered the active turn",
25 - explanation: "This message was intended to steer the agent while its turn was still running.",
26 - tone: "steer",
23 + icon: "arrow.uturn.forward",
24 });
25 });
26
27 it("preserves the queued origin after promotion to steer", () => {
28 expect(resolveUserMessageIntentBadge("promoted_queued_to_steer")).toEqual({
32 - label: "queued → steer",
29 + label: "Steer",
30 accessibilityLabel: "Originally queued, then promoted to steer the active turn",
34 - explanation:
35 - "This message was originally queued, then promoted to steer the agent while its turn was still running.",
36 - tone: "steer",
31 + icon: "arrow.uturn.forward",
32 });
33 });
34 });
apps/mobile/src/features/threads/userMessageIntentBadge.ts
+9 -14
@@ -1,10 +1,11 @@
1 import type { OrchestrationV2UserMessageInputIntent } from "@t3tools/contracts";
2
3 +import type { AppSymbolName } from "../../components/ui/AppSymbol";
4 +
5 export interface UserMessageIntentBadgePresentation {
6 readonly label: string;
7 readonly accessibilityLabel: string;
6 - readonly explanation: string;
7 - readonly tone: "queued" | "steer";
8 + readonly icon: AppSymbolName | null;
9 }
10
11 export function resolveUserMessageIntentBadge(
@@ -13,27 +14,21 @@ export function resolveUserMessageIntentBadge(
14 switch (intent) {
15 case "queued_turn":
16 return {
16 - label: "from queue",
17 + label: "From queue",
18 accessibilityLabel: "Queued while the agent was busy",
18 - explanation:
19 - "This badge records that the message was queued. It stays visible after the message leaves the queue.",
20 - tone: "queued",
19 + icon: null,
20 };
21 case "steer":
22 return {
24 - label: "steer",
23 + label: "Steer",
24 accessibilityLabel: "Steered the active turn",
26 - explanation:
27 - "This message was intended to steer the agent while its turn was still running.",
28 - tone: "steer",
25 + icon: "arrow.uturn.forward",
26 };
27 case "promoted_queued_to_steer":
28 return {
32 - label: "queued → steer",
29 + label: "Steer",
30 accessibilityLabel: "Originally queued, then promoted to steer the active turn",
34 - explanation:
35 - "This message was originally queued, then promoted to steer the agent while its turn was still running.",
36 - tone: "steer",
31 + icon: "arrow.uturn.forward",
32 };
33 case "turn_start":
34 case undefined: