Repository navigation
[1/4] Load chat preferences without blocking Eclipse - #452
Draft
Sheng Chen (jdneo) wants to merge 4 commits into
Draft
Sheng Chen (jdneo) wants to merge 4 commits into
Sheng Chen (jdneo) wants to merge 4 commits into
Conversation
…ation Centralize account-scoped preference state in lifecycle-owned storage. Restore mode, model and history through guarded Realm publication; keep preference-dependent controls disabled until ready and show loading, failure and retry states. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep cold built-in mode discovery off SWT, preserve selected-mode identity until discovery completes, and expose independent manual recovery without reloading ready preferences. Restore model vision observation, guard disposed access, tolerate unavailable image models, and reject legacy Gson JSON extensions. Harden UI regressions so SWT failures reach JUnit. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Sep 20, 2026
Sheng Chen (jdneo)
added this pull request to stack #456
September 20, 2026 10:31
This was referenced Sep 30, 2026
* Initial plan * Consolidate built-in chat mode loading into manager Co-authored-by: jdneo <6193897+jdneo@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jdneo <6193897+jdneo@users.noreply.github.com>
This was referenced Sep 30, 2026
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.
Opening chat can block Eclipse's SWT thread while the Copilot Language Server resolves the preference path or saved preferences are read. This first layer addresses initial-loading responsiveness from #408 without changing the preference file location, representation, account association, or CLS persistence contract.
Scope and approach
ChatServiceManagerone authoritative, lifecycle-ownedPreferenceStorage, shared by actual mode/model preference consumers. Constructors and synchronous getters no longer wait for preference RPCs or file reads.Review and regression coverage
Parallel Standards and Spec reviews were performed against
b138f1a7cfec6aa293b6834bbe9fb5bf8e1f0235, including follow-up changes before commit. All in-scope findings were resolved. The known synchronous-saving limitation is intentionally assigned to layer 02.Tests exercise real first-initialization entry points and the public storage lifecycle: incomplete authenticated RPCs with separately queued SWT actions, readiness/control states, controlled deadlines, restoration and file/RPC failures, coalesced retries, stale/account/disposal protection, both preference/mode-discovery completion orders, and manual discovery recovery preserving loaded choices. UI tests propagate SWT-thread failures back to JUnit rather than relying on workbench exception handling. Red-to-green failures were demonstrated for lost vision observation, unavailable-image-model dereference, and disposed-observable access.
Validation
Final committed code was validated on Windows using installed Java 21 (
JAVA_HOME=C:\Users\sheche\.jdks\ms-21.0.11):All three commands passed. The final clean build passed all 19 reactor modules and 10,767 tests: core 10,210, UI 553, and jobs 4, with zero failures, errors, or skipped tests in those suites. The targeted preference/initialization/image selection passed 87 tests. Tycho's executed suite evidence comes from
verify; thetestphase also completed successfully.git diff --checkpassed.The SWTBot JSON-probe module skips execution by default. No JSON probe was authored or executed, and no probe coverage is claimed.
Bootstrap issues were resolved without tracked build changes:
npm install --force --no-audit --no-fundincom.microsoft.copilot.eclipse.core\copilot-agentrestored pinned CLS 1.541.0 assets; disabling Eclipse P2 mirrors avoided a stalled download; installed Java 21 avoided the pinned Mockito/Byte Buddy incompatibility with the default Java 25. No validation blocker remains.Stack boundaries and follow-ups
This is layer 01 of 04, based on
main. It delivers nonblocking loading, not the whole nonblocking-preferences specification.No CLS CPU investigation, preference-format migration, cross-instance merging, or protocol change is included.