Skip to content

Commit 4756870

Browse files
committed
Italics user prompt, similar accent block for agent prompt
1 parent 14e178d commit 4756870

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

cli/src/components/agent-branch-item.tsx

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,18 +244,34 @@ export const AgentBranchItem = ({
244244
{prompt && (
245245
<box
246246
style={{
247-
flexDirection: 'column',
247+
flexDirection: 'row',
248248
gap: 0,
249+
alignItems: 'stretch',
249250
marginBottom: content ? 1 : 0,
250251
}}
251252
>
252-
<text
253-
fg={theme.foreground}
254-
style={{ wrapMode: 'word' }}
255-
attributes={getAttributes(TextAttributes.ITALIC)}
253+
<box
254+
style={{
255+
width: 1,
256+
backgroundColor: theme.userLine,
257+
marginTop: 0,
258+
marginBottom: 0,
259+
}}
260+
/>
261+
<box
262+
style={{
263+
paddingLeft: 1,
264+
flexGrow: 1,
265+
}}
256266
>
257-
{prompt}
258-
</text>
267+
<text
268+
fg={theme.foreground}
269+
style={{ wrapMode: 'word' }}
270+
attributes={getAttributes(TextAttributes.ITALIC)}
271+
>
272+
{prompt}
273+
</text>
274+
</box>
259275
</box>
260276
)}
261277
{renderExpandedContent(content)}

cli/src/components/message-block.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ export const MessageBlock = memo(
526526
<text
527527
key={`message-content-${messageId}`}
528528
style={{ wrapMode: 'word', fg: resolvedTextColor }}
529+
attributes={isUser ? TextAttributes.ITALIC : undefined}
529530
>
530531
{displayContent}
531532
</text>
@@ -566,6 +567,7 @@ export const MessageBlock = memo(
566567
marginTop,
567568
marginBottom,
568569
}}
570+
attributes={isUser ? TextAttributes.ITALIC : undefined}
569571
>
570572
{renderedContent}
571573
</text>

0 commit comments

Comments
 (0)