Function
getAgentBorderClass
(
agent: WorkspaceAgent,
hasErrorState: boolean,
)
Source from the content-addressed store, hash-verified
| 112 | }; |
| 113 | |
| 114 | const getAgentBorderClass = ( |
| 115 | agent: WorkspaceAgent, |
| 116 | hasErrorState: boolean, |
| 117 | ): string => { |
| 118 | if (hasErrorState) { |
| 119 | return "border-border"; |
| 120 | } |
| 121 | |
| 122 | // Lifecycle state is more specific than connection status, so it wins. |
| 123 | return ( |
| 124 | statusBorderClassByLifecycle[agent.lifecycle_state] ?? |
| 125 | statusBorderClassByStatus[agent.status] ?? |
| 126 | "border-border" |
| 127 | ); |
| 128 | }; |
| 129 | |
| 130 | const STARTUP_SCRIPT_DISPLAY_NAME = "Startup Script"; |
| 131 | |
Tested by
no test coverage detected