Skip to content

fix: resolve eager-items selects without explicit valueOptions#9357

Merged
tomivirkki merged 4 commits into
mainfrom
fix/eager-items-selects
May 27, 2026
Merged

fix: resolve eager-items selects without explicit valueOptions#9357
tomivirkki merged 4 commits into
mainfrom
fix/eager-items-selects

Conversation

@tomivirkki

Copy link
Copy Markdown
Member

Summary

  • An eager setItems(...) ComboBox/Select/RadioButtonGroup/CheckboxGroup/MultiSelectComboBox was unwritable from fill_form unless the app also called FormAIController.valueOptions(...), even though the schema already surfaces those items as enum.
  • The converter now resolves an LLM-supplied label against the field's in-memory items via renderItem for both single- and multi-select, so both halves of the tool protocol agree on the label set without forcing a second registration.

🤖 Generated with Claude Code

tomivirkki and others added 2 commits May 25, 2026 16:36
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Cover the converter ↔ schema symmetry on the path that actually
exercises renderItem: a typed item with a custom ItemLabelGenerator,
not a String item that collapses to toString().

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vaadin vaadin deleted a comment from github-actions Bot May 25, 2026
@tomivirkki
tomivirkki requested a review from ugur-vaadin May 26, 2026 06:10
@sonarqubecloud

Copy link
Copy Markdown

@tomivirkki
tomivirkki added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 435996d May 27, 2026
15 checks passed
@tomivirkki
tomivirkki deleted the fix/eager-items-selects branch May 27, 2026 07:09
@vaadin-bot

Copy link
Copy Markdown
Collaborator

This ticket/PR has been released with Vaadin 25.2.0-beta2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants