@devries-cameron20 / t3code Mirror · read-only / commits / 6455fc1a74
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

fix(mobile): Composer says why Send is disabled after an attachment upload fails (#38395)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Mike Olson committed Nov 19, 2026 at 16:42 UTC 6455fc1a74c752a732f1458718f67f6fd083914b
2 files changed +24
apps/mobile/src/components/ComposerAttachmentStrip.tsx
+7
@@ -66,6 +66,13 @@ export function ComposerAttachmentThumbnail(props: ComposerAttachmentThumbnailPr
66 return (
67 <View style={{ width: props.size, height: props.size }}>
68 <ComposerAttachmentContent {...props} />
69 + {upload?.status === "failed" ? (
70 + <View
71 + pointerEvents="none"
72 + className="absolute inset-0 border-2 border-danger-foreground"
73 + style={{ borderRadius: props.borderRadius }}
74 + />
75 + ) : null}
76 {upload && upload.status !== "ready" ? (
77 <Pressable
78 accessibilityRole={upload.status === "failed" ? "button" : "text"}
apps/mobile/src/features/threads/ThreadComposer.tsx
+17
@@ -57,6 +57,7 @@ import { useLinkedEnvironments } from "../../state/peerLinks";
57 import { useEnvironmentScopeDenied } from "../../state/session";
58 import { scopeProjectRef } from "@t3tools/client-runtime/environment";
59
60 +import { SymbolView } from "../../components/ui/AppSymbol";
61 import { AppText as Text } from "../../components/ui/AppText";
62 import { ComposerAttachmentButton } from "./ComposerAttachmentButton";
63 import {
@@ -804,6 +805,22 @@ export const ThreadComposer = function ThreadComposer(props: ThreadComposerProps
805 onDismiss={voiceInput.cancel}
806 />
807 {isExpanded ? editingAttachments : null}
808 + {attachmentBlockReason !== null ? (
809 + <View className="flex-row items-center gap-1.5 px-4 py-1.5">
810 + <SymbolView
811 + name="exclamationmark.triangle"
812 + size={13}
813 + tintColorClassName="accent-warning-foreground"
814 + type="monochrome"
815 + />
816 + <Text
817 + accessibilityRole="alert"
818 + className="min-w-0 flex-1 text-xs text-warning-foreground"
819 + >
820 + {attachmentBlockReason}
821 + </Text>
822 + </View>
823 + ) : null}
824 <View
825 onLayout={(event) => {
826 compactEditor.onRowLayout(event);