Commit 862f3a7
feat(agent-connections): improve agent detail UX, prompt template, and interactive prompt improvement (#2792)
* feat(agent-connections): show resource counts in connection footer
Display resource counts (N tools, N prompts, N resources) or "All" in the connection footer instead of just a number. This shows which resources each connection has on the same line as the config icon.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* feat(agent-connections): adjust footer layout and instance selector size
Move resource counts to the left side of the footer and make the instance selector smaller with a more compact design, matching the Registry selection style.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* feat(agent-connections): add instructions template and improve dialog UX
Added "[+ Prompt template]" button to auto-populate instruction guidance when the field is empty. Extracted agent capabilities and connection dialogs into separate components for better maintainability. Fixed instance selector height to use proper sizing. Added decopilot endpoint for AI-powered prompt improvement.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* fix(agent-connections): remove unused exports to fix knip CI check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(agent-connections): replace improve-prompt endpoint with decopilot chat
Send /writing-prompts message via createThreadAndSend instead of calling
a dedicated backend endpoint, making prompt improvement interactive.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(automations): add improve prompt button to automation instructions
Same pattern as agent detail — sends /writing-prompts via decopilot chat
with the current instructions extracted from the tiptap editor.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(automations): use ghost variant for improve prompt button
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(automations): revert improve button to outline variant
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(automations): update improve prompt message format
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(automations): set plan mode on improve prompt and extract normalizeMessages
Pass toolApprovalLevel: "plan" in createThreadAndSend for the improve
prompt button on both automation and agent detail pages. Extract shared
message normalization logic into normalize-messages.ts.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Co-authored-by: gimenes <tlgimenes@gmail.com>1 parent b486b0a commit 862f3a7
9 files changed
Lines changed: 1926 additions & 858 deletions
File tree
- apps/mesh/src
- tools/automations
- web
- components/details/virtual-mcp
- routes/orgs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 98 | + | |
107 | 99 | | |
108 | 100 | | |
109 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 112 | + | |
120 | 113 | | |
121 | 114 | | |
122 | 115 | | |
| |||
0 commit comments