Skip to content

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

Merged
merged 9 commits into from
Apr 9, 2025

Conversation

volodkevych
Copy link
Contributor

@volodkevych volodkevych commented Apr 8, 2025

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.

@volodkevych volodkevych force-pushed the chat-client-history branch from ae61775 to 2b08b93 Compare April 9, 2025 12:12
@volodkevych volodkevych marked this pull request as ready for review April 9, 2025 12:24
@volodkevych volodkevych requested a review from a team as a code owner April 9, 2025 12:24

const conversationClicked = (params: ConversationClickResult) => {
if (!params.success) {
// TODO: any logging, error for this?
Copy link
Contributor

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[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit; small typo "conversarion"

Copy link
Contributor Author

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these commented?

Copy link
Contributor Author

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.

Comment on lines 345 to 353
// Noop not-implemented handlers
onBeforeTabRemove: undefined,
onFileActionClick: undefined,
onStopChatResponse: undefined,
onQuickCommandGroupActionClick: undefined,
onChatItemEngagement: undefined,
onShowMoreWebResultsClick: undefined,
onFormLinkClick: undefined,
onFormModifierEnterPress: undefined,
Copy link
Contributor

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

Copy link
Contributor Author

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({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this accidentally committed?

Copy link
Contributor Author

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.

@volodkevych volodkevych enabled auto-merge (squash) April 9, 2025 14:21
@volodkevych volodkevych merged commit 5b8e83c into main Apr 9, 2025
6 checks passed
@volodkevych volodkevych deleted the chat-client-history branch April 9, 2025 14:24
tabBarButtons: [
{
id: ChatHistory.TabBarButtonId,
icon: MynahIcons.COMMENT,
Copy link
Contributor

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

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants