@@ -302,13 +302,13 @@ protected function selectTargetAgents(): Collection
302302 /**
303303 * Get configuration settings for contract-specific selection behavior.
304304 *
305- * @return array{scroll: int, required: bool, displayMethod: string}
305+ * @return array{required: bool, displayMethod: string}
306306 */
307307 protected function getSelectionConfig (string $ contractClass ): array
308308 {
309309 return match ($ contractClass ) {
310- Agent::class => ['scroll ' => 5 , ' required ' => false , 'displayMethod ' => 'agentName ' ],
311- McpClient::class => ['scroll ' => 5 , ' required ' => true , 'displayMethod ' => 'displayName ' ],
310+ Agent::class => ['required ' => false , 'displayMethod ' => 'agentName ' ],
311+ McpClient::class => ['required ' => true , 'displayMethod ' => 'displayName ' ],
312312 default => throw new InvalidArgumentException ("Unsupported contract class: {$ contractClass }" ),
313313 };
314314 }
@@ -351,7 +351,7 @@ protected function selectCodeEnvironments(string $contractClass, string $label):
351351 label: $ label ,
352352 options: $ options ->toArray (),
353353 default: array_unique ($ detectedClasses ),
354- scroll: $ config [ ' scroll ' ] ,
354+ scroll: count ( $ options -> toArray ()) ,
355355 required: $ config ['required ' ],
356356 hint: $ detectedClasses === [] ? '' : sprintf ('Auto-detected %s for you ' ,
357357 Arr::join (array_map (function ($ className ) use ($ availableEnvironments , $ config ) {
0 commit comments