Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: chat images keep the version from when the message was written #14009

Closedflamboh(GitHub profile, opens in a new tab)wants to merge 6 commits intot3code/codex-turn-mapping fromrefs/pull/14009/headopened View on GitHub

Showing 20 changed files with 81 additions and 14 deletions (loading 17).

x
0 of 20 viewed, 20 left
17 additions and 8 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -209,6 +209,7 @@
import { useFileChipShare } from "./useFileChipShare";
import {
MarkdownImageAvailableWidthContext,
+ MessageMediaSnapshotsContext,
ThreadMarkdownImage,
ThreadMarkdownImageUnavailable,
ThreadMarkdownImageView,
@@ -1838,14 +1839,22 @@
{renderedText.trim().length > 0 ? (
<MarkdownImageAvailableWidthContext value={props.markdownContentWidth}>
- <AssistantMarkdownContent
- markdown={renderedText}
- markdownStyles={styles}
- linkHandlers={props.markdownLinkHandlers}
- onUseArtifactTemplate={props.onUseArtifactTemplate}
- renderImage={props.renderMarkdownImage}
- skills={props.skills}
- />
+ <MessageMediaSnapshotsContext
+ value={
+ message.projectedItem?.item.type === "assistant_message"
+ ? message.projectedItem.item.mediaSnapshots
+ : undefined
+ }
+ >
+ <AssistantMarkdownContent
+ markdown={renderedText}