Skip to content

Commit 7c22de9

Browse files
author
Ricardo DeMatos
committed
feat(managed-agent): promote the vault disclaimer to the switch label
Reviewer feedback: the previous version buried the security disclaimer under a generic "Vault authorization" title with the full text below in the description. Users would only see "Vault authorization" next to the toggle and might not read the description. Move the whole "I own or am authorized to use these vaults. I understand this means this agent can assume the identity granted by them." string to the switch's title so it sits right next to the toggle. Description line collapses to the run-time constraint: "Required when at least one vault is selected above." No functional change; the run-time enforcement (tool rejects when `vaults` is non-empty and the ack is falsy) is unchanged.
1 parent 40bdae7 commit 7c22de9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/sim/blocks/blocks/managed_agent_cloud.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ export const ManagedAgentCloudBlock: BlockConfig = {
8686
// rejects execution with an actionable error if `vaults` is
8787
// non-empty but this is false.
8888
id: 'vaultsAck',
89-
title: 'Vault authorization',
89+
title:
90+
'I own or am authorized to use these vaults. I understand this means this agent can assume the identity granted by them.',
9091
type: 'switch',
9192
required: false,
92-
description:
93-
'I own or am authorized to use these vaults. I understand this means this agent can assume the identity granted by them. Required when at least one vault is selected above.',
93+
description: 'Required when at least one vault is selected above.',
9494
},
9595
{
9696
// Memory store — attached as a `memory_store` resource entry.

apps/sim/blocks/blocks/managed_agent_self_hosted.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export const ManagedAgentSelfHostedBlock: BlockConfig = {
133133
// Security ack — enforced at execution time when at least one vault
134134
// is selected. See the sibling comment on `managed_agent_cloud.ts`.
135135
id: 'vaultsAck',
136-
title: 'Vault authorization',
136+
title:
137+
'I own or am authorized to use these vaults. I understand this means this agent can assume the identity granted by them.',
137138
type: 'switch',
138139
required: false,
139-
description:
140-
'I own or am authorized to use these vaults. I understand this means this agent can assume the identity granted by them. Required when at least one vault is selected above.',
140+
description: 'Required when at least one vault is selected above.',
141141
},
142142
...memorySubBlocks,
143143
{

0 commit comments

Comments
 (0)