Add per-pane new thread draft slots - #2404
Open
brsbl wants to merge 6 commits into
Open
Conversation
…aft-slots-thr_2e2gbjx943
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 was wrong
New-thread compose state used one browser-wide draft identity. Opening a second new-thread pane reused that singleton, so two panes could not preserve independent unsent text or restore the focused draft reliably.
What changed
No server state, wire contract, or daemon protocol changes are introduced by this layer.
Visual evidence
Exact comparison:
977d04e4236b68433bd068139909a3e129ed7b38→a2f8eea7dedf54396c68500d826f2ab3772a0cc3.Before — exact base
977d04e4236b68433bd068139909a3e129ed7b38Modified New thread still resolves to the singleton composer.
After — exact head
a2f8eea7dedf54396c68500d826f2ab3772a0cc3The same action creates a second independent new-thread pane.
After — independent text survives reload
How you verified
scripts/bb-dev-app, light theme,/, 1440×900.Fixes: N/A — Updated Sidebar draft-slot layer.
BB-Thread-ID: thr_2e2gbjx943