@@ -148,10 +148,10 @@ <h3 class="text-sm font-black text-black mb-2 flex items-center gap-1">
148148
149149 const data = await response . json ( ) ;
150150
151- // Render agents
151+ // Render agents (max 4)
152152 const agentsContainer = document . getElementById ( 'agents-container' ) ;
153153 if ( agentsContainer && data . agents ) {
154- agentsContainer . innerHTML = data . agents . map ( agent => `
154+ agentsContainer . innerHTML = data . agents . slice ( 0 , 4 ) . map ( agent => `
155155 <button class="action-button action-button--primary" onclick="addAgent('${ agent . name } ')">
156156 <div class="action-button__plus">+</div>
157157 <div class="action-button__content">
@@ -161,10 +161,10 @@ <h3 class="text-sm font-black text-black mb-2 flex items-center gap-1">
161161 ` ) . join ( '' ) ;
162162 }
163163
164- // Render MCPs
164+ // Render MCPs (max 4)
165165 const mcpsContainer = document . getElementById ( 'mcps-container' ) ;
166166 if ( mcpsContainer && data . mcps ) {
167- mcpsContainer . innerHTML = data . mcps . map ( mcp => `
167+ mcpsContainer . innerHTML = data . mcps . slice ( 0 , 4 ) . map ( mcp => `
168168 <button class="action-button action-button--secondary" onclick="addMCP('${ mcp . name } ')">
169169 <div class="action-button__plus">+</div>
170170 <div class="action-button__content">
@@ -174,10 +174,10 @@ <h3 class="text-sm font-black text-black mb-2 flex items-center gap-1">
174174 ` ) . join ( '' ) ;
175175 }
176176
177- // Render rules
177+ // Render rules (max 4)
178178 const rulesContainer = document . getElementById ( 'rules-container' ) ;
179179 if ( rulesContainer && data . rules ) {
180- rulesContainer . innerHTML = data . rules . map ( rule => `
180+ rulesContainer . innerHTML = data . rules . slice ( 0 , 4 ) . map ( rule => `
181181 <button class="action-button action-button--accent" onclick="addRule('${ rule . name } ')">
182182 <div class="action-button__plus">+</div>
183183 <div class="action-button__content">
0 commit comments