Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): images the agent opens stay visible in the chat #30473

Mergedfedeinfe(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/30473/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 121 additions and 5 deletions (loading 6).

x
0 of 9 viewed, 9 left
14 additions and 0 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -286,6 +286,7 @@
​
const TURN_FOLD_HEIGHT = 42;
const FEED_PADDING_TOP = 12;
+const VIEWED_IMAGE_GAP = 8;
const USER_BUBBLE_HORIZONTAL_PADDING = 3.5 * 3.5;
const ASSISTANT_ROW_HORIZONTAL_PADDING = 3.5;
// Virtualization remounts old rows; only newly created content should replay an entrance.
@@ -1722,6 +1723,19 @@
+ if (entry.type === "viewed-images") {
+ const thumbnailWidth = Math.floor((props.contentWidth - VIEWED_IMAGE_GAP) / 2);
+ return (
+ <View className="flex-row flex-wrap pb-2" style={{ gap: VIEWED_IMAGE_GAP }}>
+ {entry.paths.map((path) => (
+ <View key={path} style={{ width: thumbnailWidth }}>
+ {props.renderViewedImage({ href: path, alt: null, title: null })}
+ </View>
+ ))}
+ </View>
+ );
+ }
+​
if (entry.type === "mcp-app") {
return (
<ThreadMcpApp