Repository navigation
refactor(workspace): unify project open ordering in backend and drop display-order heuristics - #3955
Merged
Conversation
…display-order heuristics
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.
Summary
WorkspaceManagerthe single authority for opened workspace ordering:promote_if_opened: true) are placed at the first project slot while preserving assistant slots.set_active_workspace/open_workspace_by_id), legacy path-only upgrade opens, and background SSH restore (promoteIfOpened: false) keep existingopened_workspace_idspositions unchanged.promoteIfOpenedthrough Desktopopen_remote_workspace, CLI Peeropen_workspace/open_remote_workspace, Serveropen_workspace, andGlobalAPI.openRemoteWorkspace(defaulting legacy payloads withoutpromoteIfOpenedtotrue).stableWorkspaceOrder,isActivationReorder,hostOrders,lastSeenHostOrders,noteWorkspaceActivated,noteWorkspaceOrderPersisted) and the redundant post-openreorderOpenedWorkspacesRPC pipeline (persistPromotedWorkspaceOrder,catalogMutationDepth,openedBefore).setWorkspaceDisplayOrder/orderWorkspacesForDisplay) for jump-free live/background device hand-overs, manual drag-and-drop reorder, pre-commit FLIP promotion snapshots, and sidebar scroll reveal.Verification & Remote Scenario Coverage
cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,remote-workspace --lib service::workspace::cargo test --locked -p openbitfun-cli --bin openbitfun peer_host::cargo test --locked -p openbitfun-desktop --lib assistant_workspace_delete_tests(includes legacy deserialization coverage forOpenRemoteWorkspaceRequest)cargo check --locked -p openbitfun-core --no-default-features && cargo check --locked -p openbitfun-serverVitest(206 tests acrossworkspaceDisplayOrder,workspaceManager,deviceWorkspaceCatalog,WorkspaceListSection,DeviceCatalogSection,DeviceWorkspaceSections,MainNav.projectCreation,SSHRemoteProvider)pnpm run check:web,pnpm run check:core-boundaries,pnpm run check:repo-hygienepromote_if_openedon explicit open vs background restore), Peer Device Mode (Desktop & CLI Peer host-invoke + controller surface isolation and cached hand-over), and Remote Control / legacy upgrade (finish_legacy_workspace_openorder preservation).