Skip to content

Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.

Wrap an agent's role instead of letting it spill out of the card (#103)

Cleiton Salvagni7c01680ffcd4
diff --git a/src/renderer/src/components/Conversation.tsx b/src/renderer/src/components/Conversation.tsx
index e7e0640..0592a72 100644
--- a/src/renderer/src/components/Conversation.tsx
+++ b/src/renderer/src/components/Conversation.tsx
@@ -144,7 +144,11 @@ export function ConversationView({ id }: { id: string }): ReactNode {
<div className="topbar__title">
{dmAgent ? <AgentAvatar agent={dmAgent} size={22} /> : <Icon name="hash" />}
<h1>{title}</h1>
- {dmAgent && <span className="tag">{dmAgent.role}</span>}
+ {dmAgent?.role && (
+ <span className="tag topbar__role" title={dmAgent.role}>
+ {dmAgent.role}
+ </span>
+ )}
{conv.topic && <span className="topbar__topic">{conv.topic}</span>}
</div>
<div className="topbar__actions">
diff --git a/src/renderer/src/components/Pages.tsx b/src/renderer/src/components/Pages.tsx
index 072884e..e17e633 100644
--- a/src/renderer/src/components/Pages.tsx
+++ b/src/renderer/src/components/Pages.tsx
@@ -706,7 +706,7 @@ export function AgentPage({ id, draft: proposed, fromMessage }: { id?: string; d
<AgentAvatar agent={{ ...draft, name: draft.name || '?' }} size={72} />
<strong className="profile-card__name">{draft.name || L('Sem nome', 'No name')}</strong>
<span className="muted">@{draft.handle || 'handle'}</span>
- {draft.role && <span className="tag">{draft.role}</span>}
+ {draft.role && <p className="profile-card__role">{draft.role}</p>}
<div className="profile-card__rows">
<div>
<span className="muted small">{L('Motor', 'Engine')}</span>
diff --git a/src/renderer/src/styles.css b/src/renderer/src/styles.css
index 49d3d68..363a483 100644
--- a/src/renderer/src/styles.css
+++ b/src/renderer/src/styles.css
@@ -746,6 +746,11 @@ h3 {
overflow: hidden;
text-overflow: ellipsis;
}
+.topbar__role {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
.topbar__actions {
display: flex;
align-items: center;
@@ -1792,6 +1797,13 @@ h3 {
font-size: 16px;
margin-top: 8px;
}
+.profile-card__role {
+ margin: 4px 0 0;
+ font-size: 12.5px;
+ line-height: 1.45;
+ color: var(--text-2);
+ overflow-wrap: anywhere;
+}
.profile-card__rows {
width: 100%;
margin-top: 14px;