Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(mobile): stop thread messages reading through pending cards (#5450)
Carlos Rico-Ospina470d4eb993ec
diff --git a/apps/mobile/src/features/threads/PendingApprovalCard.tsx b/apps/mobile/src/features/threads/PendingApprovalCard.tsxindex caf9bd4cd..377ae82ab 100644--- a/apps/mobile/src/features/threads/PendingApprovalCard.tsx+++ b/apps/mobile/src/features/threads/PendingApprovalCard.tsx@@ -14,8 +14,10 @@ export interface PendingApprovalCardProps {}export function PendingApprovalCard(props: PendingApprovalCardProps) {+ // Opaque for the same reason as PendingUserInputCard: nothing blurs the feed+ // behind this card, so a translucent surface bleeds messages through it.return (- <View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100/80 p-4 dark:border-white/6 dark:bg-neutral-900/80">+ <View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100 p-4 dark:border-white/6 dark:bg-neutral-900"><Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-sky-700 dark:text-sky-300">Approval needed</Text>diff --git a/apps/mobile/src/features/threads/PendingUserInputCard.tsx b/apps/mobile/src/features/threads/PendingUserInputCard.tsxindex 4d2c2c841..c3c9b4e7c 100644--- a/apps/mobile/src/features/threads/PendingUserInputCard.tsx+++ b/apps/mobile/src/features/threads/PendingUserInputCard.tsx@@ -24,8 +24,11 @@ export interface PendingUserInputCardProps {}export function PendingUserInputCard(props: PendingUserInputCardProps) {+ // The surface is opaque on purpose: the card floats over the thread feed+ // with no blur behind it, so a translucent background renders the questions+ // on top of whatever message happens to sit underneath.return (- <View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100/80 p-4 dark:border-white/6 dark:bg-neutral-900/80">+ <View className="gap-2.5 rounded-[20px] border border-neutral-200 bg-neutral-100 p-4 dark:border-white/6 dark:bg-neutral-900"><Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-sky-700 dark:text-sky-300">User input needed</Text>