Commit 200e404
fix(tui): keep AI-Assisted agent creation flow interactive (#267)
Previously, when selecting 'AI-Assisted' in the agent creation flow,
the TUI would exit interactive mode and show a toast asking the user
to type in the main input box. This was confusing and broke the
interactive flow.
Now, selecting 'AI-Assisted' opens an inline form within the TUI panel
where users can type their agent description directly, keeping the
entire workflow interactive and consistent with other features like
MCP server configuration.
Changes:
- Add build_agent_ai_description_form() function to create inline form
- Export the new function from the builders module
- Update agent_method handler to open inline form instead of exiting
- Add handler for agent-ai-create form submission
- Add unit test for the new form builder
Co-authored-by: Droid Agent <droid@factory.ai>1 parent d0bf9fd commit 200e404
3 files changed
Lines changed: 91 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
653 | 676 | | |
654 | 677 | | |
655 | 678 | | |
| |||
777 | 800 | | |
778 | 801 | | |
779 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
780 | 818 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6169 | 6169 | | |
6170 | 6170 | | |
6171 | 6171 | | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
| 6177 | + | |
| 6178 | + | |
| 6179 | + | |
| 6180 | + | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
| 6184 | + | |
| 6185 | + | |
| 6186 | + | |
| 6187 | + | |
| 6188 | + | |
| 6189 | + | |
| 6190 | + | |
| 6191 | + | |
| 6192 | + | |
| 6193 | + | |
| 6194 | + | |
| 6195 | + | |
| 6196 | + | |
| 6197 | + | |
| 6198 | + | |
| 6199 | + | |
| 6200 | + | |
| 6201 | + | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
6172 | 6207 | | |
6173 | 6208 | | |
6174 | 6209 | | |
| |||
6614 | 6649 | | |
6615 | 6650 | | |
6616 | 6651 | | |
6617 | | - | |
6618 | | - | |
6619 | | - | |
6620 | | - | |
6621 | | - | |
6622 | | - | |
6623 | | - | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
| 6655 | + | |
| 6656 | + | |
| 6657 | + | |
| 6658 | + | |
| 6659 | + | |
| 6660 | + | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
6624 | 6666 | | |
6625 | 6667 | | |
6626 | 6668 | | |
| |||
0 commit comments