Repository navigation
[ZEPPELIN-6776] Preserve unsent Assistant drafts when reopening the notebook sidebar - #5622
Merged
voidmatcha merged 4 commits intoNov 28, 2026
Merged
Conversation
voidmatcha
reviewed
Nov 26, 2026
voidmatcha
left a comment
Member
There was a problem hiding this comment.
#5621 has been merged. Could you rebase onto the latest master, prevent the empty state from appearing while the conversation list reloads after reopening the sidebar with an unsent draft, and add a regression test for this case?
- Retain unsent text and existing submitted runs within the notebook session. - Preserve uncertain-send recovery and reconcile deletes that finish while hidden. - Ignore stale view responses and prevent delayed creation from sending a hidden request.
- Let each session decide what to retain when the sidebar closes. - Separate deferred initial history from post-run synchronization. - Verify a late earlier page cannot populate a reopened draft.
Reset the discarded conversation list to its initial loading state on draft-only close. Cover draft restoration and show the empty state only after a successful empty response.
miinhho
force-pushed
the
ZEPPELIN-6776-assistant-draft-reopen
branch
from
November 26, 2026 15:34
dc48d6e to
9cbec0f
Compare
Contributor
Author
|
Thanks for the review. I rebased onto master. In 9cbec0f, closing the sidebar with only an unsent draft resets the conversation list to its initial loading state. A regression test verifies that the draft is restored on reopen and “No conversations yet” appears only after the reload succeeds with an empty list. |
Member
|
Merged into master (af17379). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this PR for?
Closing the AI Assistant sidebar discards unsent text. Reopening it on the same notebook in the same authenticated session now restores each draft to the conversation it belongs to, including the draft for a conversation that has not been created yet.
Each conversation session decides what to retain when the sidebar closes. An already submitted run can finish while the sidebar is closed, and restoring a draft does not create a conversation or send a question. A successful pending deletion removes the draft with its conversation; a failed deletion leaves the draft intact. Drafts do not carry over to another notebook, authenticated session, or page reload.
What type of PR is it?
Improvement
What is the Jira issue?
How should this be tested?
From
zeppelin-web-angular/projects/zeppelin-react, run:npm test -- AssistantWorkspace.spec.tsx useAssistantPanel.spec.tsx AssistantConversationPanel.spec.tsxQuestions: