Skip to content

Commit c1c18fc

Browse files
committed
refactor(app-shell): drop agent visibility from AgentPreview (#1901)
The agent `visibility` field was removed from the spec as an unenforced security property (framework #1901, ADR-0056 D8). AgentPreview rendered it as a persona-header pill, which now always fell back to the hardcoded default and implied a gating dial that does not exist. Remove the `visibility` read and its pill from the persona header. The `Lock` icon import stays (still used by the Permissions rail block). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012gckUwoUMWvTWfGHFgWAob
1 parent 8b8b744 commit c1c18fc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

packages/app-shell/src/views/metadata-admin/previews/AgentPreview.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Shows the configuration an operator needs to sanity-check an agent
77
* before saving:
8-
* • Persona header (avatar, label, role, visibility, active flag).
8+
* • Persona header (avatar, label, role, active flag).
99
* • Model config (provider, model id, temperature, max tokens).
1010
* • System prompt / instructions in a scrollable monospace block.
1111
* • Skills + Tools as two collapsible chip lists.
@@ -62,7 +62,6 @@ export function AgentPreview({ name, draft }: MetadataPreviewProps) {
6262
const avatar = (d.avatar as string | undefined) || undefined;
6363
const instructions = String(d.instructions ?? '');
6464
const active = d.active !== false;
65-
const visibility = String(d.visibility ?? 'organization');
6665
const model = (d.model ?? {}) as ModelConfig;
6766
const skills: string[] = Array.isArray(d.skills) ? (d.skills as string[]) : [];
6867
const tools: ToolRef[] = Array.isArray(d.tools) ? (d.tools as ToolRef[]) : [];
@@ -120,7 +119,6 @@ export function AgentPreview({ name, draft }: MetadataPreviewProps) {
120119
{role && <div className="text-xs text-muted-foreground mt-0.5">{role}</div>}
121120
<div className="mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px]">
122121
<Pill icon={active ? Eye : EyeOff} label={active ? 'Active' : 'Disabled'} tone={active ? 'green' : 'gray'} />
123-
<Pill icon={Lock} label={visibility} />
124122
{model.provider && <Pill icon={Sparkles} label={`${model.provider}${model.model ? ` · ${model.model}` : ''}`} mono />}
125123
{model.temperature != null && <Pill icon={Gauge} label={`temp ${model.temperature}`} />}
126124
{model.maxTokens != null && <Pill label={`max ${model.maxTokens}t`} />}

0 commit comments

Comments
 (0)