MCPcopy Create free account
hub / github.com/Noumena-Network/code / getBorderColor

Function getBorderColor

src/components/PromptInput/PromptInput.tsx:1650–1671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1648 inputFilter: lazySpaceInputFilter
1649 };
1650 const getBorderColor = (): keyof Theme => {
1651 const modeColors: Record<string, keyof Theme> = {
1652 bash: 'bashBorder'
1653 };
1654
1655 // Mode colors take priority, then teammate color, then default
1656 if (modeColors[mode]) {
1657 return modeColors[mode];
1658 }
1659
1660 // In-process teammates run headless - don't apply teammate colors to leader UI
1661 if (isInProcessTeammate()) {
1662 return 'promptBorder';
1663 }
1664
1665 // Check for teammate color from environment
1666 const teammateColorName = getTeammateColor();
1667 if (teammateColorName && AGENT_COLORS.includes(teammateColorName as AgentColorName)) {
1668 return AGENT_COLOR_TO_THEME_COLOR[teammateColorName as AgentColorName];
1669 }
1670 return 'promptBorder';
1671 };
1672 if (isExternalEditorActive) {
1673 return <Box flexDirection="row" alignItems="center" justifyContent="center" borderColor={getBorderColor()} borderStyle="round" borderLeft={false} borderRight={false} borderBottom width="100%">
1674 <Text dimColor italic>

Callers 1

PromptInputFunction · 0.85

Calls 2

isInProcessTeammateFunction · 0.85
getTeammateColorFunction · 0.50

Tested by

no test coverage detected