Skip to content

Commit cda203c

Browse files
committed
Don't show local agents toggle. You should use '@' instead
1 parent 07d5710 commit cda203c

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

cli/src/app.tsx

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -117,36 +117,6 @@ export const App = ({
117117
})
118118
: null
119119

120-
const agentCount = sortedAgents?.length
121-
122-
const formatIdentifier = (agent: { id: string; displayName: string }) =>
123-
agent.displayName && agent.displayName !== agent.id
124-
? `${agent.displayName} (${agent.id})`
125-
: agent.displayName || agent.id
126-
127-
const renderAgentListItem = (
128-
agent: { id: string; displayName: string },
129-
idx: number,
130-
) => {
131-
const identifier = formatIdentifier(agent)
132-
return (
133-
<text
134-
key={`agent-${idx}`}
135-
style={{ wrapMode: 'word', fg: theme.foreground }}
136-
>
137-
{`• ${identifier}`}
138-
</text>
139-
)
140-
}
141-
142-
const agentListContent = sortedAgents ? (
143-
<box style={{ flexDirection: 'column', gap: 0 }}>
144-
{sortedAgents.map(renderAgentListItem)}
145-
</box>
146-
) : null
147-
148-
const headerText = agentCount ? pluralize(agentCount, 'local agent') : null
149-
150120
return (
151121
<box
152122
style={{
@@ -182,28 +152,9 @@ export const App = ({
182152
onActivate={() => openFileAtPath(repoRoot)}
183153
/>
184154
</text>
185-
{headerText ? (
186-
<box style={{ marginBottom: 1 }}>
187-
<ToolCallItem
188-
name={headerText}
189-
content={agentListContent}
190-
isCollapsed={isAgentListCollapsed}
191-
isStreaming={false}
192-
streamingPreview=""
193-
finishedPreview=""
194-
onToggle={() => setIsAgentListCollapsed(!isAgentListCollapsed)}
195-
dense
196-
/>
197-
</box>
198-
) : null}
199155
</box>
200156
)
201-
}, [
202-
loadedAgentsData,
203-
logoBlock,
204-
theme,
205-
isAgentListCollapsed,
206-
])
157+
}, [loadedAgentsData, logoBlock, theme, isAgentListCollapsed])
207158

208159
// Derive auth reachability + retrying state inline from authQuery error
209160
const authError = authQuery.error

0 commit comments

Comments
 (0)