diff --git a/CHANGELOG.md b/CHANGELOG.md index 699ff41d0a..499bd0022a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,8 @@ and this project adheres to by adding `Run.active_states/0`, `WorkOrder.states/0`, and `WorkOrder.active_states/0` and replacing all hardcoded state lists across the codebase [#4589](https://github.com/OpenFn/lightning/issues/4589) +- Add nicer error messages in the AI chat for when tokens don't work + [PR#4879](https://github.com/OpenFn/lightning/pull/4879) ### Fixed diff --git a/assets/js/collaborative-editor/components/MessageList.tsx b/assets/js/collaborative-editor/components/MessageList.tsx index 48e75a9fca..3cddca7fdd 100644 --- a/assets/js/collaborative-editor/components/MessageList.tsx +++ b/assets/js/collaborative-editor/components/MessageList.tsx @@ -652,7 +652,8 @@ export function MessageList({ > - Failed to send message. Please try again. + {message.error || + 'Failed to send message. Please try again.'} {onRetryMessage && (