mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-27 19:35:13 +01:00
fix(apps): preserve grant and approval defaults
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
1 parent
fda25be6b1
commit
13dd4c1eae
12 files changed
+27
-15
No files matched your search
@@ -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"],
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user