Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: images upload the moment you attach them #6276

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromt3code/support-arbitrary-attachmentsopened View on GitHub

Showing 41 changed files with 28 additions and 9 deletions (loading 38).

x
0 of 41 viewed, 41 left
6 additions and 3 deletionsapps/mobile/src/features/review/ReviewCommentComposerSheet.tsxModified
View file
@@ -95,12 +95,15 @@
const handleNativePaste = useNativePaste((uris) => {
void (async () => {
try {
- const images = await convertPastedImagesToAttachments({
+ const pasted = await convertPastedImagesToAttachments({
uris,
existingCount: attachments.length,
});
- if (images.length > 0) {
- setAttachments((current) => [...current, ...images]);
+ if (pasted.images.length > 0) {
+ setAttachments((current) => [...current, ...pasted.images]);
+ }
+ if (pasted.error) {
+ setPendingConnectionError(pasted.error);
} catch (error) {
console.error("[review comment] error converting pasted images", error);
13 additions and 4 deletionsapps/mobile/src/features/threads/NewTaskDraftScreen.tsxModified
View file
@@ -54,7 +54,10 @@
import { deriveThreadTitleFromPrompt } from "../../lib/projectThreadStartTurn";
import { armAgentAwarenessLiveActivityForLocalWork } from "../agent-awareness/remoteRegistration";
import { enqueueThreadOutboxMessage, removeThreadOutboxMessage } from "../../state/thread-outbox";
-import { useRemoteConnectionStatus } from "../../state/use-remote-environment-registry";
+import {
+ setPendingConnectionError,