Repository navigation
Commit f0f371f
committed
/routine passes a visible, replaceable target preselection (CL-7356)
CL-7355 already removed every invited-agent guard around routine
creation (CL-7357): DefinitionTargetPicker never auto-selects, and the
panel opens identically whether invoked from the routines page, the
palette, or a chat with no agents — there was nothing left to delete.
This wires DefinitionTargetPicker's existing preselectedAssetId prop
end to end: ChatWorkspace resolves the active workbench's agent
participants (already fetched for the failed-turn model picker) and,
only when there is exactly one, hands its definitionAssetId through
onCreateRoutineInSpace to RoutinePanelSubject.preselectedAssetId. The
picker shows it chosen but never disables changing or clearing it, and
only the person's final explicit selection is ever sent to
POST /routines — unchanged from CL-7355.1 parent 5ff394c commit f0f371f
4 files changed
Lines changed: 38 additions & 5 deletions
File tree
- apps/web/src
- pages
- shell
- packages/chat-ui/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
666 | 669 | | |
667 | 670 | | |
668 | 671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
698 | 701 | | |
699 | 702 | | |
700 | 703 | | |
| |||
1150 | 1153 | | |
1151 | 1154 | | |
1152 | 1155 | | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1153 | 1165 | | |
1154 | 1166 | | |
1155 | 1167 | | |
| |||
1720 | 1732 | | |
1721 | 1733 | | |
1722 | 1734 | | |
1723 | | - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1724 | 1739 | | |
1725 | 1740 | | |
1726 | 1741 | | |
| |||
1855 | 1870 | | |
1856 | 1871 | | |
1857 | 1872 | | |
1858 | | - | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
1859 | 1877 | | |
1860 | 1878 | | |
1861 | 1879 | | |
| |||
0 commit comments