From 3277655fd66c96cf62e5fdd53040a08de009a3c9 Mon Sep 17 00:00:00 2001 From: Jake Leventhal Date: Wed, 28 Oct 2026 15:26:31 -0400 Subject: [PATCH 1/2] feat(mobile): select, cite, and comment on assistant text Long-press an assistant response, adjust the selection, and choose Cite to insert a quote into the composer. Tap a draft quote to add or edit its comment, copy it, jump to the source message, or remove it. Sent quotes open the same sheet read-only. Co-Authored-By: Claude Opus 5.5 --- .../src/components/AssistantCitationSheet.tsx | 113 ++++++++++++++++++ apps/mobile/src/components/ComposerEditor.tsx | 57 +++++++-- .../features/threads/ThreadDetailScreen.tsx | 27 ++++- .../src/features/threads/ThreadFeed.tsx | 40 ++++++- .../src/lib/composerChipPresentation.ts | 1 + apps/mobile/src/lib/composerContext.test.ts | 21 +++- apps/mobile/src/lib/composerContext.ts | 13 +- .../src/native/EnrichedMarkdownText.tsx | 11 ++ .../src/native/SelectableMarkdownText.tsx | 53 +++++++- .../native/SelectableMarkdownText.types.ts | 1 + .../src/native/T3ComposerEditor.ios.tsx | 6 +- .../src/native/T3ComposerEditor.native.tsx | 6 +- .../src/native/useEnrichedLinkVariants.ts | 11 ++ docs/user/composer.md | 6 +- 14 files changed, 339 insertions(+), 27 deletions(-) create mode 100644 apps/mobile/src/components/AssistantCitationSheet.tsx diff --git a/apps/mobile/src/components/AssistantCitationSheet.tsx b/apps/mobile/src/components/AssistantCitationSheet.tsx new file mode 100644 index 0000000000000..8aa8d00edf1ac --- /dev/null +++ b/apps/mobile/src/components/AssistantCitationSheet.tsx @@ -0,0 +1,113 @@ +import { ASSISTANT_CITATION_MAX_COMMENT_LENGTH, type AssistantCitation } from "@t3tools/contracts"; +import { scopedThreadKey } from "@t3tools/client-runtime/environment"; +import { useState } from "react"; +import { Platform, ScrollView, TextInput, View } from "react-native"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; +import { useOpenLinkedThread } from "../features/threads/useOpenLinkedThread"; +import { requestThreadMessageJump } from "../features/threads/threadMessageJump"; +import { copyTextWithHaptic } from "../lib/copyTextWithHaptic"; +import { AppText as Text } from "./ui/AppText"; +import { ListActionRow } from "./ui/ListActionRow"; +import { ListSection } from "./ui/ListSection"; +import { Sheet } from "./ui/Sheet"; + +const CONTEXT_CHARS = 80; + +function contextBefore(prefix: string) { + const flat = prefix.replace(/\s+/g, " "); + if (flat.length <= CONTEXT_CHARS) return flat.trimStart(); + const cut = flat.slice(-CONTEXT_CHARS); + return `…${cut.slice(cut.indexOf(" ") + 1)}`; +} + +function contextAfter(suffix: string) { + const flat = suffix.replace(/\s+/g, " "); + if (flat.length <= CONTEXT_CHARS) return flat.trimEnd(); + const cut = flat.slice(0, CONTEXT_CHARS); + return `${cut.slice(0, cut.lastIndexOf(" "))}…`; +} + +export function AssistantCitationSheet(props: { + readonly citation: AssistantCitation; + readonly onClose: () => void; + readonly onRemove?: () => void; + readonly onCommentChange?: (comment: string) => void; +}) { + const openLinkedThread = useOpenLinkedThread(); + const insets = useSafeAreaInsets(); + const citation = props.citation; + const [comment, setComment] = useState(citation.comment ?? ""); + const close = () => { + if (props.onCommentChange && comment.trim() !== (citation.comment ?? "")) { + props.onCommentChange(comment); + } + props.onClose(); + }; + return ( + + + + + + {contextBefore(citation.prefix)} + {citation.text} + {contextAfter(citation.suffix)} + + + {props.onCommentChange ? ( + + + + ) : citation.comment ? ( + + + {citation.comment} + + + ) : null} + + { + close(); + requestThreadMessageJump(scopedThreadKey(citation), citation.messageId); + openLinkedThread(citation); + }} + /> + copyTextWithHaptic(citation.text)} + /> + {props.onRemove ? ( + + ) : null} + + + + ); +} diff --git a/apps/mobile/src/components/ComposerEditor.tsx b/apps/mobile/src/components/ComposerEditor.tsx index 59c0a74e4525f..c106ef6f825e1 100644 --- a/apps/mobile/src/components/ComposerEditor.tsx +++ b/apps/mobile/src/components/ComposerEditor.tsx @@ -7,6 +7,12 @@ import { useEffect, useState } from "react"; import type { EnvironmentId } from "@t3tools/contracts"; import { encodeComposerContextFragment } from "@t3tools/shared/composerContextClipboard"; import { collectComposerContextReferences } from "@t3tools/shared/composerContextReferences"; +import { + collectAssistantCitations, + serializeAssistantCitation, + withAssistantCitationComment, +} from "@t3tools/shared/assistantCitations"; +import { AssistantCitationSheet } from "./AssistantCitationSheet"; import { ComposerEditor as NativeComposerEditor } from "../native/T3ComposerEditor"; import type { ComposerEditorProps as NativeComposerEditorProps } from "../native/T3ComposerEditor"; import { @@ -164,6 +170,9 @@ export function ComposerEditor({ const selectedReference = selected ? collectComposerContextReferences(selected.source)[0] : undefined; + const selectedCitation = selected + ? collectAssistantCitations(selected.source)[0]?.citation + : undefined; const selectedSkillName = selected?.source.match(/^\p{Sc}(.+)$/u)?.[1]; const selectedSkill = selectedSkillName ? props.skills?.find((skill) => skill.name === selectedSkillName) @@ -171,6 +180,32 @@ export function ComposerEditor({ const record = draft.context?.records.find( (entry) => entry.contextId === selectedReference?.contextId, ); + const removeSelected = + props.readOnly || props.editable === false + ? undefined + : () => { + if (!selected) return; + if (props.value.slice(selected.start, selected.end) === selected.source) { + changeText(props.value.slice(0, selected.start) + props.value.slice(selected.end)); + props.onSelectionChange?.({ start: selected.start, end: selected.start }); + } + setSelected(null); + }; + const commentSelectedCitation = + props.readOnly || props.editable === false || !selected || !selectedCitation + ? undefined + : (comment: string) => { + if (props.value.slice(selected.start, selected.end) !== selected.source) return; + const next = serializeAssistantCitation( + withAssistantCitationComment(selectedCitation, comment), + ); + const text = + props.value.slice(0, selected.start) + next + props.value.slice(selected.end); + const cursor = selected.start + next.length; + if (draftKey) + rememberComposerDraftSelection(draftKey, text, { start: cursor, end: cursor }); + changeText(text); + }; return ( <> {/* Reset revision history with the recreated iOS view without aborting context imports. */} @@ -214,6 +249,14 @@ export function ComposerEditor({ {importing ? ( Copying context… ) : null} + {selectedCitation ? ( + setSelected(null)} + onRemove={removeSelected} + onCommentChange={commentSelectedCitation} + /> + ) : null} {selected && (selectedReference || selectedSkill) ? ( setSelected(null)} - onRemove={ - props.readOnly || props.editable === false - ? undefined - : () => { - if (props.value.slice(selected.start, selected.end) === selected.source) { - changeText( - props.value.slice(0, selected.start) + props.value.slice(selected.end), - ); - props.onSelectionChange?.({ start: selected.start, end: selected.start }); - } - setSelected(null); - } - } + onRemove={removeSelected} /> ) : null} diff --git a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx index a23f06abef24b..eef12ef377c5d 100644 --- a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx @@ -124,7 +124,13 @@ import { useAppearancePreferences } from "../settings/appearance/AppearancePrefe import { collectProviderUsageLimits } from "@t3tools/shared/usageLimits"; import type { ComposerEditorHandle } from "../../components/ComposerEditor"; import type { StatusTone } from "../../components/StatusPill"; -import { getComposerDraftSnapshot } from "../../state/use-composer-drafts"; +import { + captureComposerDraftInsertion, + getComposerDraftSnapshot, + insertComposerDraftText, +} from "../../state/use-composer-drafts"; +import { serializeAssistantCitation } from "@t3tools/shared/assistantCitations"; +import type { AssistantCitation } from "@t3tools/contracts"; import { RenderErrorBoundary, RenderFailureView } from "../../components/RenderErrorBoundary"; import { ANDROID_READING_MAX_WIDTH, @@ -1196,6 +1202,24 @@ function ThreadDetailBody(props: ThreadDetailScreenProps) { composerEditorRef.current?.blur(); }; + const canCiteAssistantText = + props.composerDraftKey !== null && + !isProviderSubagent && + !composerSlotHidden && + !props.isSavingQueuedEdit && + !props.draftMode?.interactionLocked; + const handleCiteAssistantText = (citation: AssistantCitation) => { + if (!canCiteAssistantText || props.composerDraftKey === null) return; + const target = captureComposerDraftInsertion(props.composerDraftKey); + const prefix = target.start > 0 && !/\s/.test(target.text[target.start - 1]!) ? " " : ""; + insertComposerDraftText( + props.composerDraftKey, + `${prefix}${serializeAssistantCitation(citation)} `, + target, + ); + composerEditorRef.current?.focus(); + }; + const handleUseArtifactTemplate = (template: CodexArtifactTemplate) => { const draftMessage = props.composerDraftKey === null ? "" : getComposerDraftSnapshot(props.composerDraftKey).text; @@ -1332,6 +1356,7 @@ function ThreadDetailBody(props: ThreadDetailScreenProps) { onEndFollowEnabledChange={handleEndFollowEnabledChange} skills={selectedProviderSkills} onUseArtifactTemplate={handleUseArtifactTemplate} + onCiteAssistantText={canCiteAssistantText ? handleCiteAssistantText : undefined} /> diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx index da127a29ef9bf..cafc48d9e0650 100644 --- a/apps/mobile/src/features/threads/ThreadFeed.tsx +++ b/apps/mobile/src/features/threads/ThreadFeed.tsx @@ -1,5 +1,6 @@ import { Button } from "../../components/ui/Button"; import * as Dialog from "../../components/ui/Dialog"; +import { ASSISTANT_CITATION_MAX_TEXT_LENGTH, type AssistantCitation } from "@t3tools/contracts"; import { useOpenPullRequest } from "../../native/useOpenPullRequest"; import { useWorkspaceSettledContentWidth } from "../layout/workspace-content-width"; import { ThreadMarkdownVideo, ThreadMediaVisibleContext } from "./ThreadMarkdownVideo"; @@ -54,7 +55,6 @@ import { type ScheduledTaskId, type ScopedThreadRef, } from "@t3tools/contracts"; -import { renderAssistantCitationsAsText } from "@t3tools/shared/assistantCitations"; import { encodeComposerContextFragment } from "@t3tools/shared/composerContextClipboard"; import { parseThreadLinkHref } from "@t3tools/shared/threadLinks"; import { PROMPT_LINK_MAX_PROMPT_LENGTH } from "@t3tools/shared/promptLinks"; @@ -365,6 +365,7 @@ export interface ThreadFeedProps { readonly onEndFollowEnabledChange?: (enabled: boolean) => void; readonly skills?: ReadonlyArray; readonly onUseArtifactTemplate?: (template: CodexArtifactTemplate) => void; + readonly onCiteAssistantText?: (citation: AssistantCitation) => void; } async function waitForThreadShell( @@ -900,6 +901,8 @@ function ArtifactTemplateCard(props: { const AssistantMarkdownContent = memo(function AssistantMarkdownContent(props: { readonly markdown: string; readonly environmentId: EnvironmentId; + readonly citationSource?: Pick; + readonly onCiteAssistantText?: (citation: AssistantCitation) => void; readonly markdownStyles: MarkdownStyleSet; readonly linkHandlers: MarkdownLinkHandlers; readonly onUseArtifactTemplate?: ((template: CodexArtifactTemplate) => void) | undefined; @@ -934,6 +937,32 @@ const AssistantMarkdownContent = memo(function AssistantMarkdownContent(props: { markdown={markdown} skills={props.skills} textStyle={props.markdownStyles.nativeTextStyle} + onCiteText={ + props.onCiteAssistantText && props.citationSource + ? (text) => { + if (!text.trim()) return; + if (text.length > ASSISTANT_CITATION_MAX_TEXT_LENGTH) { + Dialog.alert( + "Quote is too long", + `Select up to ${ASSISTANT_CITATION_MAX_TEXT_LENGTH.toLocaleString()} characters to cite.`, + ); + return; + } + // Native offsets are local to Markdown blocks; navigation resolves the quote in its message. + if (!props.citationSource) return; + props.onCiteAssistantText?.({ + version: 1, + environmentId: props.environmentId, + ...props.citationSource, + text, + start: 0, + end: text.replace(/\s+/g, " ").length, + prefix: "", + suffix: "", + }); + } + : undefined + } {...linkHandlers} renderImage={props.renderImage} /> @@ -1161,7 +1190,7 @@ function ThreadAutomationMessageRow(props: { { }); it("keeps exact source positions and repeated references alongside existing native tokens", () => { const reference = formatComposerContextReference(terminal); - const text = `Use $babysit with $disabled $agentOnly $HOME $PATH $anything $notaskill $20 $20k and [app.ts](src/app.ts) with ${reference} then ${reference}`; + const citation = serializeAssistantCitation({ + version: 1, + environmentId: EnvironmentId.make("remote"), + threadId: ThreadId.make("thread"), + messageId: MessageId.make("message"), + text: "日本語 🚀 with @file.ts and $HOME", + start: 0, + end: 33, + prefix: "", + suffix: "", + }); + const text = `Use $babysit with $disabled $agentOnly $HOME $PATH $anything $notaskill $20 $20k and [app.ts](src/app.ts) with ${reference} then ${reference} (${citation}),${citation}!`; const babysit: ServerProviderSkill = { name: "babysit", path: "/skills/babysit", @@ -176,6 +191,8 @@ describe("mobile composer context", () => { "[app.ts](src/app.ts)", reference, reference, + citation, + citation, ]); for (const token of tokens) expect(text.slice(token.start, token.end)).toBe(token.source); expect( @@ -184,7 +201,7 @@ describe("mobile composer context", () => { collectComposerInlineTokens(text), composerSkillLabels([]), ).map((token) => token.type), - ).toEqual(["mention", "context", "context"]); + ).toEqual(["mention", "context", "context", "citation", "citation"]); expect( composerContextEditorTokens( text, diff --git a/apps/mobile/src/lib/composerContext.ts b/apps/mobile/src/lib/composerContext.ts index 894e349b90615..9224117f589e6 100644 --- a/apps/mobile/src/lib/composerContext.ts +++ b/apps/mobile/src/lib/composerContext.ts @@ -2,6 +2,10 @@ import { isProviderSkillUserInvocable } from "@t3tools/client-runtime/providerSk import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients"; import { filePreviewKind } from "@t3tools/shared/filePreview"; import { videoMimeType } from "@t3tools/shared/video"; +import { + assistantCitationLabel, + collectAssistantCitations, +} from "@t3tools/shared/assistantCitations"; import { COMPOSER_CONTEXT_MAX_RECORDS, COMPOSER_CONTEXT_REVIEW_TEXT_MAX_CHARS, @@ -169,18 +173,25 @@ export function composerContextEditorTokens( knownSkills: { has(name: string): boolean }, ) { const references = collectComposerContextReferences(text); + const citations = collectAssistantCitations(text); return [ ...tokens.filter( (token) => // `$HOME` and other `$name` text that is not one of the provider's skills stays prose. (token.type !== "skill" || knownSkills.has(token.value)) && - !references.some((ref) => token.start < ref.end && token.end > ref.start), + !references.some((ref) => token.start < ref.end && token.end > ref.start) && + !citations.some((ref) => token.start < ref.end && token.end > ref.start), ), ...references.map((ref) => ({ type: "context" as const, value: ref.label, ...ref, })), + ...citations.map((ref) => ({ + type: "citation" as const, + value: assistantCitationLabel(ref.citation), + ...ref, + })), ].sort((a, b) => a.start - b.start); } diff --git a/apps/mobile/src/native/EnrichedMarkdownText.tsx b/apps/mobile/src/native/EnrichedMarkdownText.tsx index 13739f0f24a1a..e888f0e6a150d 100644 --- a/apps/mobile/src/native/EnrichedMarkdownText.tsx +++ b/apps/mobile/src/native/EnrichedMarkdownText.tsx @@ -324,6 +324,17 @@ export function MobileEnrichedMarkdownText(props: SelectableMarkdownTextProps) { containerStyle={{ flexShrink: 1, minWidth: 0 }} flavor="github" selectable + contextMenuItems={ + props.onCiteText + ? [ + { + text: "Cite", + icon: "quote.bubble", + onPress: ({ text }) => props.onCiteText?.(text), + }, + ] + : undefined + } selectionClipboard={selectionClipboard} selectionColor={props.textStyle.selectionColor} selectionHandleColor={props.textStyle.selectionHandleColor} diff --git a/apps/mobile/src/native/SelectableMarkdownText.tsx b/apps/mobile/src/native/SelectableMarkdownText.tsx index e49405af4dd4f..d05e91304bf94 100644 --- a/apps/mobile/src/native/SelectableMarkdownText.tsx +++ b/apps/mobile/src/native/SelectableMarkdownText.tsx @@ -1,4 +1,9 @@ import { Platform } from "react-native"; +import { useState } from "react"; +import type { AssistantCitation } from "@t3tools/contracts"; +import { parseAssistantCitationHref } from "@t3tools/shared/assistantCitations"; +import { AssistantCitationSheet } from "../components/AssistantCitationSheet"; +import { copyTextWithHaptic } from "../lib/copyTextWithHaptic"; import type { SelectableMarkdownTextProps } from "./SelectableMarkdownText.types"; import { MobileEnrichedMarkdownText } from "./EnrichedMarkdownText"; @@ -17,6 +22,8 @@ export type { } from "./SelectableMarkdownText.types"; export function SelectableMarkdownText(props: SelectableMarkdownTextProps) { + const [citation, setCitation] = useState(null); + const hasCitations = props.markdown.includes("t3-citation:"); const theme = useUniwindTheme(); const selectionColor = themeColorWithAlpha(theme["--color-focus"], 0.32); const selectionHandleColor = theme["--color-focus"]; @@ -24,5 +31,49 @@ export function SelectableMarkdownText(props: SelectableMarkdownTextProps) { Platform.OS === "android" ? { selectionColor, selectionHandleColor, ...props.textStyle } : props.textStyle; - return ; + return ( + <> + { + const quote = parseAssistantCitationHref(href); + if (quote) setCitation(quote); + else props.onLinkPress?.(href); + } + : props.onLinkPress + } + fileContextMenu={ + hasCitations + ? (href) => + parseAssistantCitationHref(href) + ? { + title: "Assistant quote", + actions: [ + { id: "open-quote", title: "Open quote" }, + { id: "copy-quote", title: "Copy quote" }, + ], + } + : props.fileContextMenu?.(href) + : props.fileContextMenu + } + onFileContextMenuAction={ + hasCitations + ? (href, actionId) => { + const quote = parseAssistantCitationHref(href); + if (quote) { + if (actionId === "open-quote") setCitation(quote); + else if (actionId === "copy-quote") copyTextWithHaptic(quote.text); + } else props.onFileContextMenuAction?.(href, actionId); + } + : props.onFileContextMenuAction + } + /> + {citation ? ( + setCitation(null)} /> + ) : null} + + ); } diff --git a/apps/mobile/src/native/SelectableMarkdownText.types.ts b/apps/mobile/src/native/SelectableMarkdownText.types.ts index ddb40d22db37e..61c5defc78e67 100644 --- a/apps/mobile/src/native/SelectableMarkdownText.types.ts +++ b/apps/mobile/src/native/SelectableMarkdownText.types.ts @@ -68,6 +68,7 @@ export interface SelectableMarkdownTextProps { readonly skills?: ReadonlyArray; readonly preserveSoftBreaks?: boolean; readonly onLinkPress?: (href: string) => void; + readonly onCiteText?: (text: string) => void; readonly fileContextMenu?: (href: string) => MarkdownFileContextMenu | undefined; readonly onFileContextMenuAction?: (href: string, actionId: string) => void; readonly linkCustomization?: (href: string) => MarkdownLinkCustomization | undefined; diff --git a/apps/mobile/src/native/T3ComposerEditor.ios.tsx b/apps/mobile/src/native/T3ComposerEditor.ios.tsx index c649b12292be6..e4c4c66d9991f 100644 --- a/apps/mobile/src/native/T3ComposerEditor.ios.tsx +++ b/apps/mobile/src/native/T3ComposerEditor.ios.tsx @@ -192,7 +192,7 @@ export function ComposerEditor({ token.type === "mention" ? token.value : contextRecordFileName(record), ); return { - type: token.type, + type: token.type === "citation" ? "context" : token.type, source: token.source, start: token.start, end: token.end, @@ -202,7 +202,9 @@ export function ComposerEditor({ ? (skillLabels.get(token.value) ?? token.value) : token.type === "context" ? `${token.label}${props.context?.records.some((record) => record.contextId === token.contextId) ? "" : " · unavailable"}` - : basename(token.value), + : token.type === "citation" + ? token.value + : basename(token.value), detail: token.type === "context" ? composerChipSizeSuffix(record) : "", iconUri: contextChipIconUri(icon), tintsIcon: icon.kind === "chip", diff --git a/apps/mobile/src/native/T3ComposerEditor.native.tsx b/apps/mobile/src/native/T3ComposerEditor.native.tsx index e1ed9f7425668..85e022a1ec10d 100644 --- a/apps/mobile/src/native/T3ComposerEditor.native.tsx +++ b/apps/mobile/src/native/T3ComposerEditor.native.tsx @@ -189,7 +189,7 @@ export function ComposerEditor({ token.type === "mention" ? token.value : contextRecordFileName(record), ); return { - type: token.type, + type: token.type === "citation" ? "context" : token.type, source: token.source, start: token.start, end: token.end, @@ -199,7 +199,9 @@ export function ComposerEditor({ ? (skillLabels.get(token.value) ?? token.value) : token.type === "context" ? `${token.label}${props.context?.records.some((record) => record.contextId === token.contextId) ? "" : " · unavailable"}` - : basename(token.value), + : token.type === "citation" + ? token.value + : basename(token.value), detail: token.type === "context" ? composerChipSizeSuffix(record) : "", iconUri: contextChipIconUri(icon), tintsIcon: icon.kind === "chip", diff --git a/apps/mobile/src/native/useEnrichedLinkVariants.ts b/apps/mobile/src/native/useEnrichedLinkVariants.ts index 789b3a0baeb9d..36c1cd2f0c378 100644 --- a/apps/mobile/src/native/useEnrichedLinkVariants.ts +++ b/apps/mobile/src/native/useEnrichedLinkVariants.ts @@ -1,4 +1,8 @@ import { useMemo } from "react"; +import { + assistantCitationLabel, + parseAssistantCitationHref, +} from "@t3tools/shared/assistantCitations"; import { Image } from "react-native"; import type { LinkPillContent, MarkdownStyle } from "react-native-enriched-markdown"; import type { ComposerContextRecord } from "@t3tools/contracts"; @@ -63,6 +67,13 @@ function presentation( ): MarkdownLinkCustomization | undefined { const custom = props.linkCustomization?.(url); if (custom) return custom; + const citation = parseAssistantCitationHref(url); + if (citation) + return { + label: assistantCitationLabel(citation), + icon: CONTEXT_CHIP_ICON_SOURCES["message-circle"], + chip: { accent: contextChipPresentation("citation").accent, tintsIcon: true }, + }; const context = enrichedContextLinkCustomization(url); if (context) return context; const skill = enrichedSkillReference(url, props.skills); diff --git a/docs/user/composer.md b/docs/user/composer.md index e0d1f541851f0..918cc46a9e48a 100644 --- a/docs/user/composer.md +++ b/docs/user/composer.md @@ -129,8 +129,10 @@ delete it like other inline context. Copying, reloading, and restoring a with its quote, and sending tells the agent which words were quoted and which comment you wrote. The quoted text and comment count toward the message limit. -Mobile displays saved quotes and comments, but does not create citations or -navigate to their sources. +On mobile, long-press an assistant response, adjust the text selection, and choose +**Cite** to insert a quote at the composer cursor. Tap a quote in a draft to add +or edit its comment, or to remove it. Tap a quote in a draft or sent message to +open its source message. ## Recall a sent prompt From f2fcd780a90f087f6a468fbea2585f5c5f7bf05c Mon Sep 17 00:00:00 2001 From: Jake Leventhal Date: Wed, 28 Oct 2026 15:44:06 -0400 Subject: [PATCH 2/2] docs(mobile): name Go to message for opening a quote's source Co-Authored-By: Claude Opus 5.5 --- docs/user/composer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/composer.md b/docs/user/composer.md index 918cc46a9e48a..f16090170b628 100644 --- a/docs/user/composer.md +++ b/docs/user/composer.md @@ -131,8 +131,8 @@ The quoted text and comment count toward the message limit. On mobile, long-press an assistant response, adjust the text selection, and choose **Cite** to insert a quote at the composer cursor. Tap a quote in a draft to add -or edit its comment, or to remove it. Tap a quote in a draft or sent message to -open its source message. +or edit its comment, or to remove it. To open the source message, tap a quote in +a draft or sent message, then choose **Go to message**. ## Recall a sent prompt