@@ -722,19 +722,21 @@ export const PromptInput = React.memo(function PromptInput({
722722 [ showMenu , showSkillsDropdown , showModelDropdown , openRawModelDropdown , showFileMentionMenu ]
723723 ) ;
724724
725+ const isFocused = useMemo ( ( ) => ! disabled && hasTerminalFocus , [ disabled , hasTerminalFocus ] ) ;
726+
725727 const matchedCommand = slashToken ? findExactSlashCommand ( slashItems , slashToken ) : null ;
726728 const inlineHint = matchedCommand ?. args ? ` ${ matchedCommand . args . join ( ARGS_SEPARATOR ) } ` : "" ;
727729
728730 return (
729731 < Box flexDirection = "column" width = { screenWidth } >
730732 { imageUrls . length > 0 ? (
731- < Box >
733+ < Box marginLeft = { 2 } >
732734 < Text color = { theme . info } > { formatImageAttachmentStatus ( imageUrls . length ) } </ Text >
733735 < Text dimColor > { ` (${ IMAGE_ATTACHMENT_CLEAR_HINT } )` } </ Text >
734736 </ Box >
735737 ) : null }
736738 { selectedSkills . length > 0 ? (
737- < Box >
739+ < Box marginLeft = { 2 } >
738740 < Text color = { theme . info } wrap = "truncate-end" >
739741 { formatSelectedSkillsStatus ( selectedSkills ) }
740742 </ Text >
@@ -748,12 +750,10 @@ export const PromptInput = React.memo(function PromptInput({
748750 borderBottom = { true }
749751 borderLeft = { false }
750752 borderRight = { false }
751- borderColor = { theme . border }
753+ borderColor = { isFocused ? theme . primary : theme . border }
752754 >
753755 < PromptPrefixLine busy = { busy } />
754- < Text >
755- { renderBufferWithCursor ( buffer , ! disabled && hasTerminalFocus , placeholder , pastesRef . current , theme . warning ) }
756- </ Text >
756+ < Text > { renderBufferWithCursor ( buffer , isFocused , placeholder , pastesRef . current , theme . warning ) } </ Text >
757757 { inlineHint ? < Text dimColor > { inlineHint } </ Text > : null }
758758 </ Box >
759759 < RawModelDropdown
@@ -792,7 +792,7 @@ export const PromptInput = React.memo(function PromptInput({
792792 />
793793 < SlashCommandMenu width = { screenWidth } items = { slashMenu } activeIndex = { menuIndex } />
794794 { ! showFooterText && (
795- < Box >
795+ < Box marginLeft = { 2 } >
796796 < Text dimColor > { footerText } </ Text >
797797 </ Box >
798798 ) }
0 commit comments