Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server,web,mobile): approvals in full access say why Claude asked #22546

Mergedjuliusmarmingemerged 3 commits intomain fromrefs/pull/22546/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 72 additions and 2 deletions (loading 6).

x
0 of 9 viewed, 9 left
28 additions and 1 deletionapps/mobile/src/features/threads/PendingApprovalCard.tsxModified
View file
@@ -4,7 +4,12 @@
ProviderApprovalOption,
RuntimeRequestId,
} from "@t3tools/contracts";
-import { View } from "react-native";
+import {
+ FULL_ACCESS_OVERRIDE_QUESTION,
+ fullAccessOverrideExplanation,
+} from "@t3tools/client-runtime/state/thread-requests";
+import { useState } from "react";
+import { Pressable, View } from "react-native";
​
import { AppText as Text } from "../../components/ui/AppText";
import type { PendingApproval } from "../../lib/threadActivity";
@@ -31,6 +36,7 @@
const warning = options.find((option) => option.warning)?.warning;
const canRespond = props.approval.responseCapability === "live";
const disabled = !canRespond || props.respondingApprovalId === props.approval.requestId;
+ const [explanationOpen, setExplanationOpen] = useState(false);
return (
<View className="gap-2.5 rounded-[20px] border border-border bg-card-alt p-4">
<Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-foreground-secondary">
@@ -44,6 +50,27 @@
{props.approval.detail}
</Text>
) : null}
+ {props.approval.reason ? (
+ <Text className="font-sans text-xs leading-normal text-warning-foreground">