Add rich content support and interactive decision points to SelectionListNode#96
Merged
Aaronontheweb merged 3 commits intodevfrom Dec 18, 2025
Merged
Conversation
…ListNode - Add SelectionItemContent class for multi-line, styled selection items - Support ITextSegment (static and animated) in selection item content - Add "Other" option with inline text input for custom user responses - Implement decision points in streaming chat demo with LLM simulation - Fix inline layout positioning with HeightAuto() for dynamic content The SelectionListNode now supports: - Multi-line items with per-line styling - Animated segments (spinners, etc.) within items - "Something else..." option that opens inline text input - Proper coordinate translation via sub-context rendering Demo changes showcase interactive decision points where the LLM presents choices and the user can select or provide custom input.
Add documentation for new features introduced in this branch: - Rich content section with SelectionItemContent examples - Multi-line items with animated segments (spinners) - CompositeTextSegment usage examples - Constructors section in API reference - SelectionItemContent properties and methods tables - Updated SelectionItem properties (Content, LineCount) - Source code details for new classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SelectionItemContentclass for multi-line, styled selection items with support forITextSegment(static and animated)Closes #92
Changes
Core Library (
src/Termina)SelectionItemContent: New class for building rich, multi-line selection item content with styled segmentsCompositeTextSegment: Combines multipleITextSegmentinstances into a single segmentSelectionListNode:Func<T, SelectionItemContent>for rich contentWithOtherOption()method for adding custom input optionOtherSelectedobservable for custom input submissionsSelectionItem: Extended to supportSelectionItemContentand "Other" item typeDemo (
demos/Termina.Demo.Streaming)LlmSimulatorActor: Simulates decision points with choicesStreamingChatPage: Handles decision list display inline between chat history and inputStreamingChatViewModel: Manages decision point state and user responsesTests
SelectionListNode(all passing)SelectionItemContentandCompositeTextSegmentTest plan