Skip to content

Commit 8231151

Browse files
committed
fix: allow identity creation without existing agents
1 parent f4a14c6 commit 8231151

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/cli/tui/screens/add/AddFlow.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,6 @@ export function AddFlow(props: AddFlowProps) {
361361

362362
// Identity wizard - now uses AddIdentityFlow with mode selection
363363
if (flow.name === 'identity-wizard') {
364-
// Wait for agents to load before rendering wizard
365-
if (agents.length === 0) {
366-
return null;
367-
}
368364
return (
369365
<AddIdentityFlow
370366
isInteractive={props.isInteractive}

src/cli/tui/screens/add/AddScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function AddScreen({ onSelect, onExit, hasAgents }: AddScreenProps) {
2424
() =>
2525
ADD_RESOURCES.map(r => ({
2626
...r,
27-
disabled: Boolean('disabled' in r && r.disabled) || ((r.id === 'memory' || r.id === 'identity') && !hasAgents),
28-
description: (r.id === 'memory' || r.id === 'identity') && !hasAgents ? 'Add an agent first' : r.description,
27+
disabled: Boolean('disabled' in r && r.disabled) || (r.id === 'memory' && !hasAgents),
28+
description: r.id === 'memory' && !hasAgents ? 'Add an agent first' : r.description,
2929
})),
3030
[hasAgents]
3131
);

0 commit comments

Comments
 (0)