Repository navigation
#155 Polish Production Mobile Agent Conversation - #157
Merged
Merged
Conversation
Add the composition seams a production mobile agent conversation needed (#155): AiSuggestions list/grid layouts, AiConfirmation lifecycle status with localized settled states, focusNode on AiComposer/AiPromptInput, keyboardDismissBehavior on AiChat/AiConversationView, sentence capitalization, an answered check on AiQuestion, collapsing gaps for parts a partBuilder hides, and wrapping AiTask titles. Defaults keep existing behavior. Approval execution and persistence stay with the host. Release flutter_ai_elements 0.5.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A minimal production conversation built from existing elements: starter grid, compact run summary from tool state (not reasoning), answer, source-details sheet, full-width follow-ups, question -> actionable result card, an approval gate through onToolCalls, failed run with retry, and a Mobbin-informed header. Includes interaction tests, local golden checks (light, dark, RTL, large text on a narrow phone, reduced motion), recipe docs with Mobbin attribution, and the groundwork record. Closes #155 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ananmouaz
marked this pull request as ready for review
October 3, 2026 11:03
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.
Closes #155: a production mobile agent conversation recipe, plus the minimal library hooks it needed.
flutter_ai_elements 0.5.0 (defaults keep existing behavior)
AiSuggestions(layout: row | list | grid): full-width follow-up rows and a starter grid. The grid drops to one column on narrow screens and at large text sizes. A nullonSelecteddisables the suggestions while a response streams.AiConfirmation(status: awaiting | submitting | approved | denied | expired)with localized status lines. Onlyawaitingshows buttons. The host still executes and persists the decision.focusNodeonAiComposer/AiPromptInput;keyboardDismissBehavioronAiChat/AiConversationView; sentence capitalization in the composer and question fields.AiQuestionshows an answered check.AiMessageBubbleno longer leaves gaps for parts apartBuilderhides.AiTasktitles wrap at large text sizes.Demo:
demo/lib/production/(opened from "Production recipe" on the home screen, or run withflutter run -t lib/main_production.dart)onToolCallsthat expires when the user taps Stop or sends a new message.docs/recipes.md, with Mobbin attribution that separates what the screenshots show from what we adopted.Not done: real Android and iOS device checks. AgentDesk has no mobile platforms set up for this project, and the maintainer chose to skip them. The screenshots come from the Flutter test renderer, not from devices.
integration_test/screenshots_test.dartnow captures recipe frames for a later device run. Streaming raw Markdown is left to #129; Shift+Enter and copy feedback are left to #127.🤖 Generated with Claude Code
Closes #155
Local checks
dart format --output=none --set-exit-if-changed .dart analyzeflutter test (packages/flutter_ai_elements, flutter_ai_provider_*), dart test (flutter_ai_core, flutter_ai_client, flutter_ai_mcp, flutter_ai_tools, flutter_ai_voice)cd demo && flutter test test/production_recipe_test.dart test/production_golden_test.dart test/ordering_test.dartOpened by AgentDesk.