Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(clients): chat images show the new file after an agent rewrites it #14943

Closedishaanko(GitHub profile, opens in a new tab)wants to merge 12 commits intomain fromrefs/pull/14943/headopened View on GitHub

Showing 29 changed files with 13 additions and 4 deletions (loading 26).

x
0 of 29 viewed, 29 left
1 addition and 1 deletionapps/mobile/src/components/FilePreviewModal.tsxModified
View file
@@ -53,7 +53,7 @@
if (!("environmentId" in item)) return { source: { ...item, name } };
// Refresh expired URLs before handing them to Quick Look or ACTION_VIEW, which retain them.
- const url = await refreshAssetUrl(item.environmentId, item.resource, signal)
+ const url = await refreshAssetUrl(item.environmentId, item.resource, signal, item.scope)
.then((value) => {
if (!value) throw new Error("Reconnect to this environment and try again.");
return value;
5 additions and 1 deletionapps/mobile/src/components/FilePreviewModal.types.tsModified
View file
@@ -16,7 +16,11 @@
| { readonly uri: string }
| { readonly attachment: FileBackedComposerAttachment }
- | { readonly environmentId: EnvironmentId; readonly resource: AssetResource }
+ | {
+ readonly environmentId: EnvironmentId;
+ readonly resource: AssetResource;
+ readonly scope?: string | undefined;
+ }
);
​
export type FilePreviewSource = FilePreviewItem & {
7 additions and 2 deletionsapps/mobile/src/components/VideoPreviewModal.ios.tsxModified
View file