-
Notifications
You must be signed in to change notification settings - Fork 73
feat(chat-client): history list and conversation actions #929
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
ae61775
to
2b08b93
Compare
|
||
const conversationClicked = (params: ConversationClickResult) => { | ||
if (!params.success) { | ||
// TODO: any logging, error for this? |
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.
Is it even possible to get an error when clicking on a conversation?
} | ||
} | ||
|
||
private toConversarionGroups = (groups: ConversationItemGroup[]) => { |
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.
nit; small typo "conversarion"
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.
fixed
| 'onListConversations' | ||
| 'onConversationClick' | ||
'openTab' | 'sendChatUpdate' | 'onFileClicked' | 'onInlineChatPrompt' | 'sendContextCommands' | 'onCreatePrompt' | ||
// | 'onListConversations' |
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.
Why are these commented?
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'll revert code in language-server
- used it for testing.
chat-client/src/client/mynahUi.ts
Outdated
// Noop not-implemented handlers | ||
onBeforeTabRemove: undefined, | ||
onFileActionClick: undefined, | ||
onStopChatResponse: undefined, | ||
onQuickCommandGroupActionClick: undefined, | ||
onChatItemEngagement: undefined, | ||
onShowMoreWebResultsClick: undefined, | ||
onFormLinkClick: undefined, | ||
onFormModifierEnterPress: undefined, |
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.
should we remove this? We decided to remove in a previous PR here c1aaec0
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.
ok, removing
@@ -74,6 +74,74 @@ export const QChatServer = | |||
chat.onTabAdd(params => { | |||
logging.log(`Adding tab: ${params.tabId}`) | |||
|
|||
chat.sendContextCommands({ |
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.
Is this accidentally committed?
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'll revert code in language-server
- used it for testing.
tabBarButtons: [ | ||
{ | ||
id: ChatHistory.TabBarButtonId, | ||
icon: MynahIcons.COMMENT, |
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 should be MynahIcons.HISTORY
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 see it changed recently. Ok, will change the icon with the change for dynamic configuration for those opitons.
Problem
Current version of chat client does not support conversation history list.
Solution
Added support for list conversations, conversation click and conversation actions click.
Screen.Recording.2025-04-09.at.14.19.19.mov
Unit tests will be added in separate followup PR.
TODO
comments will be fixed in separate PR.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.