GeezerVison is showing github.com — fix(server): agents below Full access ask before a push runs reposito… · patroza/t3code@c4d0e05
File treeExpand file treeCollapse file tree Open diff view settings orchestration-v2/Adapters
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/features/threads/PendingApprovalCard.tsx +21-2Lines changed: 21 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,6 +7,8 @@ import type { | 7 | 7 | import { | 8 | 8 | FULL_ACCESS_OVERRIDE_QUESTION, | 9 | 9 | fullAccessOverrideExplanation, | | 10 | + PUSH_HOOKS_APPROVAL_QUESTION, | | 11 | + pushHooksApprovalRows, | 10 | 12 | } from "@t3tools/client-runtime/state/thread-requests"; | 11 | 13 | import { T, useGT, useMessages } from "gt-react-native"; | 12 | 14 | import { useState } from "react"; | @@ -40,15 +42,32 @@ export function PendingApprovalCard(props: PendingApprovalCardProps) { | 40 | 42 | const canRespond = props.approval.responseCapability === "live"; | 41 | 43 | const disabled = !canRespond || props.respondingApprovalId === props.approval.requestId; | 42 | 44 | const [explanationOpen, setExplanationOpen] = useState(false); | | 45 | + // T3 Code's own question reads as the app asking: a plain sentence, then what it names. | | 46 | + const { pushHooks } = props.approval; | 43 | 47 | return ( | 44 | 48 | <View className="gap-2.5 rounded-[20px] border border-border bg-card-alt p-4"> | 45 | 49 | <Text className="font-t3-bold text-2xs uppercase tracking-[1.1px] text-foreground-secondary"> | 46 | 50 | <T>Approval needed</T> | 47 | 51 | </Text> | 48 | 52 | <Text className="font-t3-bold text-lg text-foreground"> | 49 | | - {props.approval.appName ?? props.approval.requestKind} | | 53 | + {pushHooks | | 54 | + ? m(PUSH_HOOKS_APPROVAL_QUESTION) | | 55 | + : (props.approval.appName ?? props.approval.requestKind)} | 50 | 56 | </Text> | 51 | | - {props.approval.detail ? ( | | 57 | + {pushHooks ? ( | | 58 | + <View className="gap-1.5"> | | 59 | + {pushHooksApprovalRows(pushHooks, m).map((row, index) => ( | | 60 | + // oxlint-disable-next-line react/no-array-index-key -- rows never reorder and two hooks may read alike | | 61 | + <View key={index} className="gap-0.5"> | | 62 | + <Text className="font-sans text-xs text-foreground-muted">{row.label}</Text> | | 63 | + <Text selectable className="font-sans text-sm leading-normal text-foreground"> | | 64 | + {row.name ? `${row.name} ` : null} | | 65 | + <Text className="font-mono text-sm text-foreground">{row.code}</Text> | | 66 | + </Text> | | 67 | + </View> | | 68 | + ))} | | 69 | + </View> | | 70 | + ) : props.approval.detail ? ( | 52 | 71 | <Text className="font-sans text-sm leading-normal text-foreground-secondary"> | 53 | 72 | {props.approval.detail} | 54 | 73 | </Text> | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/de.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Keine Repositorys", | 874 | 874 | "04ea9e0e663983fd": "Alle Repositorys", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} Repository} other {{count} Repositorys}}", | | 876 | + "1b799ebfa94c2408": "Genehmigung für Push-Hooks", | | 877 | + "81d703184fe5112e": "Push-Hooks dieses Repositorys ausführen?", | | 878 | + "027b0d65c7a67af6": "Hook-Datei", | | 879 | + "ade585910165bb52": "Konfigurierter Hook", | 876 | 880 | "e94aa66471dae6aa": "Warum werde ich das gefragt?", | 877 | 881 | "228a325b5708e675": "Vollzugriff überspringt Genehmigungen, aber eine Nachfrageregel in den Einstellungen des Agenten trifft auf diese Aktion zu, daher fragt er trotzdem. Entferne diese Regel oder schränke sie ein, um diese Nachfragen zu beenden.", | 878 | 882 | "3f9101f696c738a8": "Vollzugriff überspringt Genehmigungen, aber der Agent hält trotzdem für einige eigene Sicherheitsprüfungen an, die keine Einstellung überspringen kann, etwa beim Löschen eines Pfads, den er nicht prüfen kann. T3 Code kann diese nicht abschalten. Prüfe also die Anfrage und genehmige sie, wenn sie deinen Erwartungen entspricht.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/en.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "No repositories", | 874 | 874 | "04ea9e0e663983fd": "All repositories", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} repository} other {{count} repositories}}", | | 876 | + "1b799ebfa94c2408": "Push hooks approval", | | 877 | + "81d703184fe5112e": "Run this repository's push hooks?", | | 878 | + "027b0d65c7a67af6": "Hook file", | | 879 | + "ade585910165bb52": "Configured hook", | 876 | 880 | "e94aa66471dae6aa": "Why am I being asked this?", | 877 | 881 | "228a325b5708e675": "Full access skips approvals, but an ask rule in the agent's own settings matches this action, so it still asks. Remove or narrow that rule to stop these prompts.", | 878 | 882 | "3f9101f696c738a8": "Full access skips approvals, but the agent still stops for a few safety checks of its own that no setting can skip, such as a delete whose path it can't verify. T3 Code can't turn these off, so check the request and approve it if it's what you expect.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/es.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Sin repositorios", | 874 | 874 | "04ea9e0e663983fd": "Todos los repositorios", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} repositorio} other {{count} repositorios}}", | | 876 | + "1b799ebfa94c2408": "Aprobación de hooks de push", | | 877 | + "81d703184fe5112e": "¿Ejecutar los hooks de push de este repositorio?", | | 878 | + "027b0d65c7a67af6": "Archivo de hook", | | 879 | + "ade585910165bb52": "Hook configurado", | 876 | 880 | "e94aa66471dae6aa": "¿Por qué se me pregunta esto?", | 877 | 881 | "228a325b5708e675": "El acceso completo omite las aprobaciones, pero una regla de preguntar en los ajustes del propio agente coincide con esta acción, así que sigue preguntando. Quita o restringe esa regla para dejar de ver estas solicitudes.", | 878 | 882 | "3f9101f696c738a8": "El acceso completo omite las aprobaciones, pero el agente sigue deteniéndose en algunas comprobaciones de seguridad propias que ningún ajuste puede omitir, como una eliminación cuya ruta no puede verificar. T3 Code no puede desactivarlas, así que revisa la solicitud y apruébala si es lo que esperas.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/fr.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Aucun dépôt", | 874 | 874 | "04ea9e0e663983fd": "Tous les dépôts", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} dépôt} other {{count} dépôts}}", | | 876 | + "1b799ebfa94c2408": "Approbation des hooks de push", | | 877 | + "81d703184fe5112e": "Exécuter les hooks de push de ce dépôt ?", | | 878 | + "027b0d65c7a67af6": "Fichier de hook", | | 879 | + "ade585910165bb52": "Hook configuré", | 876 | 880 | "e94aa66471dae6aa": "Pourquoi cette question ?", | 877 | 881 | "228a325b5708e675": "L’accès complet ignore les approbations, mais une règle « ask » dans les paramètres de l’agent correspond à cette action ; il demande donc quand même. Supprimez ou restreignez cette règle pour ne plus voir ces demandes.", | 878 | 882 | "3f9101f696c738a8": "L’accès complet ignore les approbations, mais l’agent s’arrête quand même pour quelques contrôles de sécurité qui lui sont propres et qu’aucun paramètre ne peut ignorer, comme une suppression dont il ne peut pas vérifier le chemin. T3 Code ne peut pas les désactiver ; vérifiez donc la demande et approuvez-la si elle correspond à ce que vous attendez.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ja.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "リポジトリなし", | 874 | 874 | "04ea9e0e663983fd": "すべてのリポジトリ", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, other {{count} 件のリポジトリ}}", | | 876 | + "1b799ebfa94c2408": "プッシュフックの承認", | | 877 | + "81d703184fe5112e": "このリポジトリのプッシュフックを実行しますか?", | | 878 | + "027b0d65c7a67af6": "フックファイル", | | 879 | + "ade585910165bb52": "設定されたフック", | 876 | 880 | "e94aa66471dae6aa": "なぜこれを尋ねられているのですか?", | 877 | 881 | "228a325b5708e675": "フルアクセスでは承認がスキップされますが、エージェント自身の設定にある確認ルールがこの操作に一致するため、確認が求められます。このプロンプトを止めるには、そのルールを削除するか対象を絞ってください。", | 878 | 882 | "3f9101f696c738a8": "フルアクセスでは承認がスキップされますが、エージェントには設定でスキップできない独自の安全確認がいくつかあります (パスを検証できない削除など)。T3 Code ではオフにできないため、リクエスト内容を確認し、想定どおりであれば承認してください。", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ko.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "저장소 없음", | 874 | 874 | "04ea9e0e663983fd": "모든 저장소", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, other {저장소 {count}개}}", | | 876 | + "1b799ebfa94c2408": "푸시 훅 승인", | | 877 | + "81d703184fe5112e": "이 저장소의 푸시 훅을 실행할까요?", | | 878 | + "027b0d65c7a67af6": "훅 파일", | | 879 | + "ade585910165bb52": "설정된 훅", | 876 | 880 | "e94aa66471dae6aa": "왜 이 질문을 받나요?", | 877 | 881 | "228a325b5708e675": "전체 액세스는 승인을 건너뛰지만, 에이전트 자체 설정의 ask 규칙이 이 작업과 일치하므로 계속 확인을 요청합니다. 이 메시지를 멈추려면 해당 규칙을 제거하거나 범위를 좁히세요.", | 878 | 882 | "3f9101f696c738a8": "전체 액세스는 승인을 건너뛰지만, 에이전트는 경로를 확인할 수 없는 삭제처럼 어떤 설정으로도 건너뛸 수 없는 자체 안전 검사에서는 여전히 멈춥니다. T3 Code는 이를 끌 수 없으므로 요청을 확인하고 예상한 내용이면 승인하세요.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/pt-BR.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Nenhum repositório", | 874 | 874 | "04ea9e0e663983fd": "Todos os repositórios", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} repositório} other {{count} repositórios}}", | | 876 | + "1b799ebfa94c2408": "Aprovação de hooks de push", | | 877 | + "81d703184fe5112e": "Executar os hooks de push deste repositório?", | | 878 | + "027b0d65c7a67af6": "Arquivo de hook", | | 879 | + "ade585910165bb52": "Hook configurado", | 876 | 880 | "e94aa66471dae6aa": "Por que estou recebendo esta pergunta?", | 877 | 881 | "228a325b5708e675": "O acesso total ignora as aprovações, mas uma regra de pergunta nas configurações do próprio agente corresponde a esta ação, então ele ainda pergunta. Remova ou restrinja essa regra para parar esses pedidos.", | 878 | 882 | "3f9101f696c738a8": "O acesso total ignora as aprovações, mas o agente ainda para em algumas verificações de segurança próprias que nenhuma configuração ignora, como uma exclusão cujo caminho ele não consegue verificar. O T3 Code não consegue desativá-las, então confira a solicitação e aprove se for o que você espera.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/ru.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Нет репозиториев", | 874 | 874 | "04ea9e0e663983fd": "Все репозитории", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} репозиторий} few {{count} репозитория} many {{count} репозиториев} other {{count} репозитория}}", | | 876 | + "1b799ebfa94c2408": "Подтверждение push-хуков", | | 877 | + "81d703184fe5112e": "Запустить push-хуки этого репозитория?", | | 878 | + "027b0d65c7a67af6": "Файл хука", | | 879 | + "ade585910165bb52": "Настроенный хук", | 876 | 880 | "e94aa66471dae6aa": "Почему меня об этом спрашивают?", | 877 | 881 | "228a325b5708e675": "Полный доступ пропускает подтверждения, но правило ask в собственных настройках агента совпадает с этим действием, поэтому он всё равно спрашивает. Удалите или сузьте это правило, чтобы запросы прекратились.", | 878 | 882 | "3f9101f696c738a8": "Полный доступ пропускает подтверждения, но агент всё равно останавливается на нескольких собственных проверках безопасности, которые нельзя отключить настройкой, например удаление по пути, который он не может проверить. T3 Code не может их отключить, поэтому проверьте запрос и подтвердите его, если он ожидаем.", | |
Collapse file Copy file name to clipboardExpand all lines: apps/mobile/src/i18n/translations/sv.json +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 873 | 873 | "05b16c85cb1e18bd": "Inga repon", | 874 | 874 | "04ea9e0e663983fd": "Alla repon", | 875 | 875 | "c07bd24ff49e85d9": "{count, plural, one {{count} repo} other {{count} repon}}", | | 876 | + "1b799ebfa94c2408": "Godkännande av push-hooks", | | 877 | + "81d703184fe5112e": "Köra det här repositoryts push-hooks?", | | 878 | + "027b0d65c7a67af6": "Hook-fil", | | 879 | + "ade585910165bb52": "Konfigurerad hook", | 876 | 880 | "e94aa66471dae6aa": "Varför får jag den här frågan?", | 877 | 881 | "228a325b5708e675": "Full åtkomst hoppar över godkännanden, men en fråga-regel i agentens egna inställningar matchar den här åtgärden, så den frågar ändå. Ta bort eller begränsa regeln för att slippa de här frågorna.", | 878 | 882 | "3f9101f696c738a8": "Full åtkomst hoppar över godkännanden, men agenten stannar ändå för några egna säkerhetskontroller som ingen inställning kan hoppa över, till exempel en radering vars sökväg den inte kan verifiera. T3 Code kan inte stänga av dem, så kontrollera begäran och godkänn den om den är vad du väntar dig.", | |
|