Repository navigation
fix(sidebar): surface unsent drafts in Recent and Consolidated List sidebars - #1995
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Fixes #1972
Summary
Draftssection (reusinginbox::draft_idsand existing localized stringssidebar.inbox.section.drafts,sidebar.inbox.discardDraft,command.session.new) at the top of bothOrganize::RecentandOrganize::Consolidated+Navigation::Listinapps/desktop/src/shell/view/sidebar/recent.rs. Each draft row displays its first non-empty line (or "New session"), pencil/shortcut leading icon, hover close button, and right-click Discard draft menu, and suppresses the empty-state message when drafts exist.apps/desktop/src/shell/tabs/actions.rs,open_draft_tabnow reuses an already-active empty draft on the active server and prunes stale empty draft tabs when using a session-list layout (Inbox,Organize::Recent, orConsolidated+List), while preserving all drafts with content so users can keep multiple unsent drafts visible and switch between them.draft_idsahead of pinned and recent sessions inApp::nav_orderunderConsolidated+ListsoCmd/Ctrl+1..9badges andCtrl+Tabfollow the sidebar order.Verification
pwsh scripts/guardrails.ps1(11/11).cargo check -p opencode-desktopandcargo check -p opencode-desktop --no-default-features --features knobs.recent.rsandactions.rs).