Skip to content

Commit 4592bb3

Browse files
committed
fix(mobile): offer links for persisted automation messages
1 parent 2a71496 commit 4592bb3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,7 @@ function OpenSenderThreadButton(props: {
11131113
/** Automation prompts are long, repeated runbooks; a folded bubble keeps them out of the way. */
11141114
function ThreadAutomationMessageRow(props: {
11151115
readonly environmentId: EnvironmentId;
1116+
readonly messageLink: ReturnType<typeof persistedMessageLink>;
11161117
readonly text: string;
11171118
readonly context?: OrchestrationMessageContext;
11181119
readonly scheduledTaskId: ScheduledTaskId | undefined;
@@ -1220,7 +1221,7 @@ function ThreadAutomationMessageRow(props: {
12201221
</Text>
12211222
<MessageCopyButton
12221223
isPrompt
1223-
messageLink={null}
1224+
messageLink={props.messageLink}
12241225
text={props.text}
12251226
onCopy={undefined}
12261227
tintColor={props.iconSubtleColor}
@@ -1453,6 +1454,10 @@ function renderFeedEntry(
14531454
return (
14541455
<ThreadAutomationMessageRow
14551456
environmentId={props.environmentId}
1457+
messageLink={persistedMessageLink(
1458+
{ environmentId: props.environmentId, threadId: props.threadId },
1459+
message,
1460+
)}
14561461
text={presentation.text}
14571462
context={message.context}
14581463
scheduledTaskId={presentation.scheduledTaskId}

0 commit comments

Comments
 (0)