- 
                Notifications
    
You must be signed in to change notification settings  - Fork 49.1k
 
fix(editor): Fix outstanding chat UI bugs (no-changelog) #21413
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
Conversation
| messageId: ChatMessageId; | ||
| previousMessageId: ChatMessageId | null; | ||
| retryOfMessageId: ChatMessageId | null; | ||
| executionId: number | null; | 
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.
This has no effect in this PR, but along with changes in #21393 this makes it possible to show the link to execution in the chat message action without refreshing the browser.
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.
On base llm models the execution gets deleted right after the streaming is done, we should make sure we don't show those execution links as user won't be able to follow them 🤔
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.
Yes, we'll show it for n8n workflow agent only.
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.
(when the execution gets deleted the column also gets set to NULL on the db)
| const b = messagesGraph[second]; | ||
| 
               | 
          ||
| // TODO: Disabled for now, messages retried don't get this at the FE before reload | ||
| // TOOD: Do we even need runIndex at all? | 
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.
runIndex is already removed
| 
               | 
          ||
| const messages = linkMessages(Object.values(conversation.messages)); | ||
| 
               | 
          ||
| // TOOD: Do we need 'state' column at all? | 
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.
Turned out that we need the state column 😄
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.
yeah I made it actually somewhat accurate last week
          
BundleMonUnchanged files (2)
 No change in files bundle size Groups updated (2)
 Final result: ✅ View report in BundleMon website ➡️  | 
    
          Codecov Report❌ Patch coverage is  📢 Thoughts on this report? Let us know!  | 
    
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.
2 issues found across 8 files
Prompt for AI agents (all 2 issues)
Understand the root cause of the following 2 issues and fix them.
<file name="packages/frontend/editor-ui/src/features/ai/chatHub/chat.store.ts">
<violation number="1" location="packages/frontend/editor-ui/src/features/ai/chatHub/chat.store.ts:297">
onBeginMessage adds a duplicate session entry for every stream start. Guard against pushing when the session already exists to avoid duplicating chats in the sidebar.</violation>
</file>
<file name="packages/frontend/editor-ui/src/features/ai/chatHub/ChatView.vue">
<violation number="1" location="packages/frontend/editor-ui/src/features/ai/chatHub/ChatView.vue:186">
The new auto-scroll guard should only follow the streaming prompt when the streaming session matches this view; otherwise the fallback never runs and conversation history stays scrolled away from the latest messages if another chat is actively streaming.</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
        
          
                packages/frontend/editor-ui/src/features/ai/chatHub/ChatView.vue
              
                Outdated
          
            Show resolved
            Hide resolved
        
      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.
🚀
| 
          
 E2E Tests: n8n tests passed after 7m 22.4s Run Details
 
 Groups
 
 
  This message was posted automatically by 
  currents.dev | Integration Settings
   
       | 
    
| 
           Got released with   | 
    
Summary
This PR fixes several outstanding UI bugs in chat:
Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)