Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: tool screenshots show as images, not base64 text #16199

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/16199/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 17 changed files with 31 additions and 4 deletions (loading 14).

x
0 of 17 viewed, 17 left
1 addition and 0 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -1933,6 +1933,7 @@
onToggleRow={props.onToggleWorkRow}
renderImage={props.renderViewedImage}
renderReasoning={props.renderReasoning}
+ onPressPreview={props.onPressPreview}
7 additions and 2 deletionsapps/mobile/src/features/threads/ThreadMarkdownImage.tsxModified
View file
@@ -178,7 +178,10 @@
/** Environment-hosted image that loads through a signed asset URL. */
export function ThreadMarkdownImage(props: {
readonly environmentId: EnvironmentId;
- readonly resource: Extract<AssetResource, { readonly _tag: "attachment" | "media-file" }>;
+ readonly resource: Extract<
+ AssetResource,
+ { readonly _tag: "attachment" | "media-file" | "tool-output-image" }
+ >;
readonly alt: string | null;
readonly srcFragment?: string;
readonly actionsSource?: MediaActionsSource;
@@ -192,7 +195,9 @@
sourceKey={
props.resource._tag === "attachment"
? `attachment:${props.resource.attachmentId}`
- : `workspace:${props.resource.path}`