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

Eliza UI interface conversation is erased when changing tab #184

Open
Tracked by #176
mihai169 opened this issue Jan 7, 2025 · 1 comment
Open
Tracked by #176

Eliza UI interface conversation is erased when changing tab #184

mihai169 opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels

Comments

@mihai169
Copy link
Collaborator

mihai169 commented Jan 7, 2025

Conversation is erased when user changes "tab" from chat to character description or other section. The desired
outcome is that user conversation is displayed when user returns to chat tab for the current session.

Acceptance Criteria:
Conversation Persistence:

When a user navigates away from the chat tab (e.g., to the character description or another section), the conversation should not be erased.
The conversation history should be preserved in the current session.
When the user returns to the chat tab, the conversation history should be displayed as it was when they left.
Session Persistence:

The conversation should persist for the entire duration of the session. If the session is closed or the user logs out, the conversation will no longer persist.
If the user returns to the chat tab during the same session, the conversation should be loaded and displayed correctly.
State Management:

The application should manage the state of the chat to ensure that the conversation data is not lost when switching tabs.
The chat history should be retained as a part of the session state and reloaded when the user navigates back to the chat tab.
Tab Switching:

When the user switches from the chat tab to any other tab (e.g., character description or settings), the chat tab should save the current state (conversation) in memory.
Upon returning to the chat tab, the current conversation should be displayed without any data loss.

Gherkin-Style Test Case:
Feature: Conversation Persistence Across Tabs

As a user,
I want my conversation to persist when switching between tabs,
So that I can return to my chat conversation without losing any history within the current session.

Scenario: Conversation is preserved when switching tabs
Given the user is in a chat conversation
And the user switches to a different tab (e.g., character description or another section)
When the user returns to the chat tab
Then the conversation should be restored and displayed as it was before the user switched tabs

Scenario: Conversation remains intact after switching tabs multiple times
Given the user is in an ongoing conversation in the chat tab
When the user switches to a different tab multiple times (e.g., character description, settings)
And then returns to the chat tab
Then the conversation history should remain intact and visible
And no part of the conversation should be erased or lost

Scenario: User session persists conversation history
Given the user is in an active session with a conversation in the chat tab
When the user navigates away to another tab (e.g., character description)
And the user returns to the chat tab within the same session
Then the conversation should still be visible
And the state of the conversation should be exactly as it was when the user left the chat tab

Scenario: Closing and reopening the chat tab does not erase conversation within the session
Given the user is engaged in a conversation in the chat tab
When the user navigates to another section (e.g., character description tab)
And the user returns to the chat tab during the same session
Then the conversation should still be visible
And the conversation history should not be lost

Scenario: Conversation is erased after the session ends (e.g., user logs out or session expires)
Given the user has been engaged in a conversation in the chat tab
When the user logs out or the session expires
Then the conversation history should be erased
And no conversation history should be visible when the user logs back in or starts a new session

@snobbee
Copy link
Collaborator

snobbee commented Jan 17, 2025

@mihai169 that issue was addressed and demoed in this ticket and comment #212 (comment) now if the user switch to another agent and go back to the agent chat, the history of the conversation will persist, similarly if the user leaves the page and open it again the history of the conversation is restored.

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

No branches or pull requests

2 participants