Skip to content
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

fix: keep in history list after history deleted #19

Conversation

wanglam
Copy link
Collaborator

@wanglam wanglam commented Nov 29, 2023

Description

Fix jump to new chat page after current session deleted in dock right mode like below video:

Screen.Recording.2023-11-29.at.14.41.57.mov

It should stay the same page

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

SuZhou-Joe and others added 28 commits November 23, 2023 10:50
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
…(#10)

* feat: change implementation of basic_input_output to built-in parser

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update CHANGELOG

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: enable build input-output message

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: sort interactions

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: remove useless code

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: use parent_interaction_id as traceId

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
* feat: add mechannism to register messageParser

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: add interaction into message_bubble.tsx

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update CHANGELOG

Signed-off-by: SuZhou-Joe <[email protected]>

* fix: lint checker

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: remove useless code

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: update

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
* Integrate Memeory APIs of agent framework

Signed-off-by: gaobinlong <[email protected]>

* Add TODO to getSessions()

Signed-off-by: gaobinlong <[email protected]>

---------

Signed-off-by: gaobinlong <[email protected]>
* feat: add implement visualization in customized parser

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: add csv-parser lib

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: add csv-parser lib

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: add test cases

Signed-off-by: SuZhou-Joe <[email protected]>

* feat: optimize

Signed-off-by: SuZhou-Joe <[email protected]>

---------

Signed-off-by: SuZhou-Joe <[email protected]>
@wanglam wanglam marked this pull request as ready for review November 29, 2023 06:46
@wanglam wanglam requested a review from joshuali925 as a code owner November 29, 2023 06:46
@wanglam wanglam requested a review from anirudha as a code owner November 29, 2023 06:46
Comment on lines +81 to +84
// Clear old session chat states
setTitle(undefined);
setSessionId(undefined);
chatStateDispatch({ type: 'reset' });
Copy link
Member

@SuZhou-Joe SuZhou-Joe Nov 29, 2023

Choose a reason for hiding this comment

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

What about adding a unit test to cover the changes here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is that means add unit tests for the whole ChatHIstoryPage?

Copy link
Member

@SuZhou-Joe SuZhou-Joe Nov 29, 2023

Choose a reason for hiding this comment

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

That would be better. We are fixing an edge case in this PR, preparing a dedicated unit test for it can prevent others stepping into the same issue if they do any refactor.

Copy link
Member

Choose a reason for hiding this comment

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

Are these two files needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. These two files are used in https://github.com/opensearch-project/dashboards-assistant/blob/feature/agent-framework/test/jest.config.js#L28-L30 . The test will be failed if import sass or svg files.

@wanglam wanglam changed the base branch from feature/agent-framework to feature/langchain November 30, 2023 06:36
@wanglam wanglam closed this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants