@devries-cameron20 / t3code-1 / commits / 7a2cce8268
Fork 0

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

feat(mobile): add copy thread ID to thread list actions (#12228)

Jake Leventhal committed Sep 18, 2026 at 01:24 UTC 7a2cce826852c3a3255d7c7aa1e9c148287eba2c
2 files changed +10
apps/mobile/src/features/threads/thread-list-items.tsx
+5
@@ -18,6 +18,7 @@ import { ControlPillMenu } from "../../components/ControlPill";
18 import { EnvironmentMachineSymbol } from "../../components/EnvironmentMachineSymbol";
19 import { ProjectFavicon } from "../../components/ProjectFavicon";
20 import { cn } from "../../lib/cn";
21 +import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
22 import { HOME_HORIZONTAL_INSET } from "../../lib/layoutMetrics";
23 import { relativeTime } from "../../lib/time";
24 import { useUniwindTheme } from "../../lib/useUniwindTheme";
@@ -547,6 +548,7 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
548 : []),
549 THREAD_ROW_MENU_ACTIONS[0]!,
550 THREAD_ROW_MENU_ACTIONS[1]!,
551 + { id: "copy-thread-id", title: "Copy thread ID", image: "doc.on.doc" },
552 ...buildThreadTitleRegenerationMenuItems({
553 supported: props.titleRegenerationSupported,
554 isRegenerating: thread.titleRegeneration != null,
@@ -569,6 +571,9 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
571 if (nativeEvent.event === "new-thread-on-branch") onNewThreadOnBranch(thread);
572 if (nativeEvent.event === "archive") handleArchive();
573 if (nativeEvent.event === "rename") handleRename();
574 + if (nativeEvent.event === "copy-thread-id") {
575 + copyTextWithHaptic(thread.id, { target: "thread-id" });
576 + }
577 if (nativeEvent.event === "regenerate-title") handleRegenerateTitle();
578 if (nativeEvent.event === "delete") handleDelete();
579 },
apps/mobile/src/features/threads/thread-list-v2-items.tsx
+5
@@ -24,6 +24,7 @@ import { ProjectFavicon } from "../../components/ProjectFavicon";
24 import { ProviderInstanceIcon } from "../../components/ProviderIcon";
25 import type { ThreadRowProviderInstance } from "./thread-provider-instance";
26 import { cn } from "../../lib/cn";
27 +import { copyTextWithHaptic } from "../../lib/copyTextWithHaptic";
28 import { relativeTime } from "../../lib/time";
29 import { useUniwindTheme } from "../../lib/useUniwindTheme";
30 import type { PendingNewTask } from "../../state/use-pending-new-tasks";
@@ -670,6 +671,9 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
671 if (nativeEvent.event === "archive") handleArchive();
672 if (nativeEvent.event === "rename") handleRename();
673 if (nativeEvent.event === "regenerate-title") handleRegenerateTitle();
674 + if (nativeEvent.event === "copy-thread-id") {
675 + copyTextWithHaptic(thread.id, { target: "thread-id" });
676 + }
677 if (nativeEvent.event === "delete") handleDelete();
678 if (nativeEvent.event === "snooze:custom") {
679 setCustomSnoozeOpen(true);
@@ -1165,6 +1169,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1169 },
1170 ]
1171 : []),
1172 + { id: "copy-thread-id", title: "Copy thread ID", image: "doc.on.doc" },
1173 ...(snoozedRow
1174 ? snoozedMenuActions
1175 : !props.settlementSupported