GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: desktop v2 everything WSL by Hona · Pull Request #23407 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Apr 19, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona Hona changed the title wip wsl onboarding stuff feat: desktop WSL onboarding + happy experience May 4, 2026
@Hona
Hona marked this pull request as ready for review May 4, 2026 21:10
@Hona
Hona requested a review from adamdotdevin as a code owner May 4, 2026 21:10
Copilot AI review requested due to automatic review settings May 4, 2026 21:10
@Hona Hona added the beta label May 4, 2026
Copilot started reviewing on behalf of Hona May 4, 2026 21:11
View session
Copilot AI reviewed May 4, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Electron-side WSL server onboarding and multi-distro support, replacing the old single on/off WSL toggle with discoverable WSL sidecars that can be added and selected like other servers. It also updates the app UI so WSL-backed sessions use WSL-aware path handling and server management flows.

Changes:

  • Replaces boolean WSL enablement with a new Electron WSL servers API, controller, IPC surface, and WSL process helpers.
  • Adds app-side WSL state/context plus new server-selection/onboarding UI for adding, updating, retrying, and displaying WSL servers.
  • Adjusts routing, picker behavior, and a few supporting utilities/refactors to fit WSL-backed local workflows.

Reviewed changes

Copilot reviewed 26 out of 27 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
packages/desktop/src/index.tsx Removes legacy Tauri-side WSL picker/config behavior.
packages/desktop-electron/src/renderer/index.tsx Wires Electron renderer platform to active WSL server state and WSL server list.
packages/desktop-electron/src/renderer/env.d.ts Adds activeServer to renderer window globals.
packages/desktop-electron/src/preload/types.ts Defines WSL server/runtime/state IPC types and expands wslPath.
packages/desktop-electron/src/preload/index.ts Exposes WSL server IPC methods in preload.
packages/desktop-electron/src/main/wsl.ts Adds WSL command helpers, probing, install, upgrade, and terminal utilities.
packages/desktop-electron/src/main/wsl-servers.ts Implements WSL server controller/state management and persistence.
packages/desktop-electron/src/main/server.ts Adds WSL sidecar spawn logic and shared port allocation.
packages/desktop-electron/src/main/ipc.ts Registers WSL server IPC handlers and routes relaunch through injected deps.
packages/desktop-electron/src/main/index.ts Boots/stops WSL servers from Electron main process and hooks new IPC deps.
packages/desktop-electron/src/main/constants.ts Replaces old WSL enabled store key with WSL servers store key.
packages/desktop-electron/src/main/apps.ts Makes WSL path conversion distro-aware and handles WSL UNC paths.
packages/app/src/utils/solid-dnd.tsx Simplifies drag constraint transformer registration.
packages/app/src/pages/layout.tsx Uses web picker for WSL sidecars and passes home-navigation callback to server dialog.
packages/app/src/pages/home.tsx Mirrors WSL-aware picker/server-dialog behavior on home page.
packages/app/src/index.ts Re-exports WSL context/types from app package surface.
packages/app/src/context/wsl-servers.tsx Adds query-backed WSL servers context/provider.
packages/app/src/context/server.tsx Tracks active server globally and treats sidecars as local servers.
packages/app/src/context/platform.tsx Extends platform contract with WSL server management types/API.
packages/app/src/context/global-sync/child-store.ts Extracts reusable child disposal helper and disposeAll.
packages/app/src/context/global-sync.tsx Uses new disposeAll cleanup path.
packages/app/src/components/status-popover.tsx Passes close handler into popover body.
packages/app/src/components/status-popover-body.tsx Updates server switching flow to close popover and coordinate route changes.
packages/app/src/components/server/server-row.tsx Displays WSL badge and supports explicit version override.
packages/app/src/components/dialog-wsl-server.tsx Adds multi-step WSL onboarding/install/update wizard UI.
packages/app/src/components/dialog-select-server.tsx Integrates WSL server add/manage/update/remove flows into server selection dialog.
packages/app/src/app.tsx Mounts WSL servers provider and adjusts keyed app/router rendering.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/app/src/components/dialog-select-server.tsx Outdated
Comment on lines +503 to +506
const handleAddedWsl = async (distro: string) => {
const key = ServerConnection.Key.make(`wsl:${distro}`)
setStore("addWsl", "showWizard", false)
const conn = items().find((item) => ServerConnection.key(item) === key)
Comment thread packages/app/src/components/dialog-select-server.tsx Outdated
</Show>

<Show when={i.type === "http"}>
<Show when={i.type === "http" || i.type === "sidecar"}>
Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/wsl/runtime.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/wsl/servers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/renderer/index.tsx Outdated
Comment on lines +347 to +350
for (const item of wslServers.data?.servers ?? []) {
const runtime = item.runtime
if (runtime.kind !== "ready") continue
list.push({
Comment thread packages/app/src/components/dialog-select-server.tsx Outdated
Comment on lines +389 to +401
const navigateHome = () => props.onNavigateHome?.()

const apply = () => {
dialog.close()
if (persist && conn.type === "http") {
server.add(conn)
navigateHome()
return
}

batch(() => {
navigateHome()
server.setActive(nextKey)
Comment thread packages/desktop/src/main/apps.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona requested a review from Copilot May 4, 2026 21:22
Copilot started reviewing on behalf of Hona May 4, 2026 21:23
View session
Copilot AI reviewed May 4, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 26 out of 27 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/app/src/context/server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/apps.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/wsl/runtime.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/components/status-popover-body.tsx Outdated
Comment on lines +252 to +257
aria-disabled={blocked()}
onClick={() => {
if (blocked()) return
props.close?.()
navigate("/")
queueMicrotask(() => server.setActive(key))
const activate = () => {
Comment thread packages/app/src/components/dialog-select-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/components/dialog-select-server.tsx Outdated
Comment on lines 728 to 739
@@ -579,35 +737,54 @@ export function DialogSelectServer() {
/>
<DropdownMenu.Portal>
<DropdownMenu.Content class="mt-1">
opencode-agent Bot added a commit that referenced this pull request May 4, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
299ad1a
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
5662517
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
05311ab
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
4b01e7a
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
824cdc3
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
dae8db4
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
e62e6bd
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
a230062
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
29cb9a6
opencode-agent Bot added a commit that referenced this pull request May 5, 2026
@opencode-agent
Apply PR #23407: feat: desktop WSL onboarding + happy experience
183dfc2
@opencode-agent

opencode-agent Bot commented May 10, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

2 similar comments
@opencode-agent

opencode-agent Bot commented May 10, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brendonovich Brendonovich mentioned this pull request May 19, 2026
Desktop: MCP servers appear disconnected when WSL mode is enabled #28159
Closed
@github-actions

github-actions Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request May 23, 2026
📊 AI CLI 工具社区动态日报 2026-05-23 ivanweng2077/big_model_radar#77
Open
@opencode-agent

opencode-agent Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

3 similar comments
@opencode-agent

opencode-agent Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opencode-agent

opencode-agent Bot commented May 30, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request May 30, 2026
📊 AI CLI 工具社区动态日报 2026-05-30 jasonalang/big_model_radar#11
Open
@opencode-agent

opencode-agent Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

⚠️ Blocking Beta Release

This PR cannot be merged into the beta branch due to: Merge conflicts with dev branch

Please resolve this issue to include this PR in the next beta release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

neriousy
neriousy reviewed Jun 5, 2026
View reviewed changes
Comment thread packages/app/src/context/server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/wsl.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/dialog-add-server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/wsl/context.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/desktop/src/main/wsl/servers.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/app/src/context/server.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Hona added 16 commits June 6, 2026 12:14
@Hona
fix(desktop): resolve WSL onboarding dev conflicts
bb81fab
@Hona
fix(desktop): start configured WSL servers on launch
ed9d1ea
@Hona
feat(desktop): integrate WSL servers with settings
b2a4ddf
@Hona
fix(desktop): leave startup splash reactively
b565b99
@Hona
fix(desktop): use server picker for WSL files
97e4fe0
@Hona
fix(desktop): verify WSL OpenCode updates
c227a8b
@Hona
refactor(desktop): own WSL OpenCode binary
5478216
@Hona
fix(desktop): expose managed WSL binary in PATH
abd5325
@Hona
fix(desktop): harden WSL server lifecycle
e327bb1
@Hona
refactor(app): treat WSL servers as remote
e2762f8
@Hona
fix(app): clarify required Windows restart
a7df700
@Hona
fix(desktop): stop settled WSL health polling
9d3a264
@Hona
refactor(desktop): remove ambient WSL path state
3396bde
@Hona
refactor(app): derive WSL onboarding defaults
972da6d
@Hona
refactor(desktop): contain WSL IPC handlers
92bf31e
@Hona
fix(desktop): refresh WSL onboarding state
2391592
@gnh1996 gnh1996 mentioned this pull request Sep 16, 2026
desktop: no live updates for in-progress sessions when connected to a WSL server #49269
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@neriousy neriousy neriousy left review comments
Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

automated-pr-cleanup beta

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Hona @neriousy @kommander
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.