()
| 2212 | inputFilter: lazySpaceInputFilter |
| 2213 | }; |
| 2214 | const getBorderColor = (): keyof Theme => { |
| 2215 | const modeColors: Record<string, keyof Theme> = { |
| 2216 | bash: 'bashBorder' |
| 2217 | }; |
| 2218 | |
| 2219 | // Mode colors take priority, then teammate color, then default |
| 2220 | if (modeColors[mode]) { |
| 2221 | return modeColors[mode]; |
| 2222 | } |
| 2223 | |
| 2224 | // In-process teammates run headless - don't apply teammate colors to leader UI |
| 2225 | if (isInProcessTeammate()) { |
| 2226 | return 'promptBorder'; |
| 2227 | } |
| 2228 | |
| 2229 | // Check for teammate color from environment |
| 2230 | const teammateColorName = getTeammateColor(); |
| 2231 | if (teammateColorName && AGENT_COLORS.includes(teammateColorName as AgentColorName)) { |
| 2232 | return AGENT_COLOR_TO_THEME_COLOR[teammateColorName as AgentColorName]; |
| 2233 | } |
| 2234 | return 'promptBorder'; |
| 2235 | }; |
| 2236 | if (isExternalEditorActive) { |
| 2237 | return <Box flexDirection="row" alignItems="center" justifyContent="center" borderColor={getBorderColor()} borderStyle="round" borderLeft={false} borderRight={false} borderBottom width="100%"> |
| 2238 | <Text dimColor italic> |
no test coverage detected