Commit dbbbd29
authored
fix: improve custom widget AI assistant feedback (#42095)
## Summary
- render Custom Widget AI assistant responses with the existing shared
Ask AI Markdown renderer while keeping user messages as plain text
- expose the existing CE Markdown renderer through the edition-aware GPT
barrel so CE and EE reuse one implementation
- animate the Generating loader icon
- add regression coverage for the assistant/user rendering boundary
## Testing
- CE: 29 Custom Widget AI Assistant tests pass
- CE: ESLint passes with no new errors
- CE: TypeScript check passes
- EE sync simulation: final net patch applies cleanly onto latest
appsmith-ee release
- EE sync simulation: no PR-related TypeScript failures
- git diff validation and CE pre-push edition guard pass
## Linear
https://linear.app/appsmith/issue/APP-15735/replace-internal-appsmith-app-with-native-co-pilot-component
## Automation
/ok-to-test tags="@tag.All"
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/31082751527>
> Commit: 61a8087
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=31082751527&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Thu, 06 Aug 2026 09:11:50 UTC
<!-- end of auto-generated comment: Cypress test results -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* AI assistant responses now support formatted Markdown rendering.
* User messages continue to display as plain text for clear distinction.
* Added a rotating loading indicator while the assistant is processing.
* **Tests**
* Added coverage confirming Markdown formatting for assistant responses
and plain-text rendering for user messages.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent adc82dd commit dbbbd29
3 files changed
Lines changed: 47 additions & 2 deletions
File tree
- app/client/src
- ce/components/editorComponents/GPT
- pages/Editor/CustomWidgetBuilder/Editor/AIAssistant
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
181 | 207 | | |
182 | 208 | | |
183 | 209 | | |
| |||
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
98 | 112 | | |
99 | 113 | | |
100 | 114 | | |
| |||
565 | 579 | | |
566 | 580 | | |
567 | 581 | | |
568 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
569 | 587 | | |
570 | 588 | | |
571 | 589 | | |
| |||
589 | 607 | | |
590 | 608 | | |
591 | 609 | | |
592 | | - | |
| 610 | + | |
593 | 611 | | |
594 | 612 | | |
595 | 613 | | |
| |||
0 commit comments