Skip to content

Commit 05d2056

Browse files
committed
refactor(cli): embed agent prompt in details panel
1 parent 870113d commit 05d2056

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

cli/src/components/branch-item.tsx

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -196,29 +196,6 @@ export const BranchItem = ({
196196
)}
197197
{!isCollapsed && (
198198
<box style={{ flexDirection: 'column', gap: 1 }}>
199-
{prompt && (
200-
<box
201-
border
202-
borderStyle="single"
203-
customBorderChars={borderCharsWithoutVertical}
204-
style={{
205-
flexDirection: 'column',
206-
gap: 0,
207-
paddingLeft: 1,
208-
paddingRight: 1,
209-
paddingTop: 0,
210-
paddingBottom: 0,
211-
marginBottom: content ? 1 : 0,
212-
}}
213-
>
214-
<text wrap fg={theme.agentToggleHeaderText}>
215-
Prompt
216-
</text>
217-
<text wrap fg={theme.agentText}>
218-
{prompt}
219-
</text>
220-
</box>
221-
)}
222199
{content && (
223200
<box
224201
border
@@ -234,6 +211,19 @@ export const BranchItem = ({
234211
paddingBottom: 0,
235212
}}
236213
>
214+
{prompt && (
215+
<box style={{ flexDirection: 'column', gap: 0 }}>
216+
<text wrap fg={theme.agentToggleHeaderText}>
217+
Prompt
218+
</text>
219+
<text wrap fg={theme.agentText}>
220+
{prompt}
221+
</text>
222+
<text wrap fg={theme.agentToggleHeaderText}>
223+
Response
224+
</text>
225+
</box>
226+
)}
237227
{renderExpandedContent(content)}
238228
</box>
239229
)}

0 commit comments

Comments
 (0)