fix(apps): preserve grant and approval defaults

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
DottaandCodex committed 2026-08-20 22:11:52 +00:00
1 parent fda25be6b1
commit 13dd4c1eae
12 files changed
+27 -15

No files matched your search

+2 -3
View File
@@ -68,10 +68,9 @@ export function credentialConfigPath(field: FieldDef): string {
}
export function recommendedDefaultsForApp(app: AppDefinition, methodKey?: string | null): Record<string, unknown> {
void app;
void methodKey;
const method = getAvailableConnectionMethod(app, methodKey);
return {
access: "all_agents",
askFirstRiskLevels: [],
askFirstRiskLevels: method?.riskTier === "S1" ? [] : ["write", "destructive"],
};
}