Repository navigation
fix(sessions): optimize workspace loading and refresh imports on reveal - #3719
Merged
Merged
Conversation
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
Opening a workspace could flash a loading indicator and traverse disabled external sources. A completed discovery snapshot could also hide newly created external sessions until import was toggled off and on.
Type and Areas
Type: performance improvement and bug fix.
Areas: Web UI navigation/store, shared session services, external-session assembly, Desktop API, CLI Peer host.
Motivation / Impact
Existing session rows remain available while background work completes. New external sessions are discovered on the next collapse/reveal without toggling import. Holding a directory open does not keep scanning.
Verification
After rebasing onto upstream/main:
pnpm --dir src/web-ui exec node scripts/run-vitest.mjs run src/app/components/NavPanel/sections/sessions src/app/components/NavPanel/workspaceSessionView.test.ts src/flow_chat/store/FlowChatStore.test.ts src/infrastructure/api/service-api/SessionAPI.test.ts --maxWorkers=2— 439 tests passed.pnpm run check:web— passed.git diff --check upstream/main...HEAD— passed.Before the rebase:
cargo test --locked -p openbitfun-core --no-default-features --features external-sources,git,product-search --lib external_session_import::— 64 passed, 3 ignored.cargo test --locked -p openbitfun-services-core --no-default-features --features local-storage --lib session::page::tests— 13 passed.cargo check --locked -p openbitfun-desktop --lib— passed.cargo check --locked -p openbitfun-cli --bin openbitfun— passed.The post-rebase Rust rerun was canceled while waiting for the target-directory lock held by a running desktop development build; it did not execute tests.
Manual verification to perform after rebuilding:
Reviewer Notes
AI-assisted, with focused automated tests and compile checks. Native WebView interaction and live SSH workspace / Peer Device / Remote Control / Detached Dispatch scenarios have not been exercised; Peer request forwarding is covered by transport fixtures and compile checks.
New protocol fields are optional with legacy-deserialization coverage. Older hosts that cannot acknowledge the one-request refresh report failure instead of treating cached results as a successful refresh. No persisted-data migration is required.
Checklist