-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assorted fixes #165039
Assorted fixes #165039
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_ai_assistant/public/components/chat/chat_body.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_ai_assistant/public/components/chat/chat_header.tsx
Outdated
Show resolved
Hide resolved
const prevConversationId = usePrevious(conversationId); | ||
useEffect(() => { | ||
if (prevConversationId !== conversationId && pendingMessage?.error) { | ||
setPendingMessage(undefined); | ||
} | ||
}, [conversationId, pendingMessage?.error, prevConversationId]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it only needs to be cleared when there is an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you elaborate? What other scenarios do you think this should happen? Not seeing any obvious errors atm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you start a new conversation, and wait until it's stored, add a new message, and immediately click on "new chat" (while the assistant response is being loaded), the pending message is added there (in the new conversation). You can also use an existing conversation, do the same and then click on another conversation.
…a into feat/obs-assistant-qa-3
446a081
to
beb7fb9
Compare
x-pack/plugins/observability_ai_assistant/public/components/page_template.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_ai_assistant/public/routes/conversations/conversation_view.tsx
Show resolved
Hide resolved
beb7fb9
to
2f0b4f6
Compare
c02b5d7
to
909ce56
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsmiscellaneous assets size
History
To update your PR or re-run it, just comment with: |
Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 58cf152)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.10`: - [Assorted fixes (#165039)](#165039) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Coen Warmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-30T10:46:32Z","message":"Assorted fixes (#165039)\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"58cf152dccf661a912156fc51d1c9e46029c97a6","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","v8.11.0"],"number":165039,"url":"https://github.com/elastic/kibana/pull/165039","mergeCommit":{"message":"Assorted fixes (#165039)\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"58cf152dccf661a912156fc51d1c9e46029c97a6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165039","number":165039,"mergeCommit":{"message":"Assorted fixes (#165039)\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"58cf152dccf661a912156fc51d1c9e46029c97a6"}}]}] BACKPORT--> Co-authored-by: Coen Warmer <[email protected]>
Resolves https://github.com/elastic/obs-ai-assistant-team/issues/51
Summary
This adds:
This fixes: