Skip to content

fix(desktop): few WSL bugs#31095

Merged
Hona merged 8 commits into
anomalyco:devfrom
neriousy:fix/wsl-beta-bugs
Jun 8, 2026
Merged

fix(desktop): few WSL bugs#31095
Hona merged 8 commits into
anomalyco:devfrom
neriousy:fix/wsl-beta-bugs

Conversation

@neriousy

@neriousy neriousy commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #31097

Type of change

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

What does this PR do?

Fixes can't access distroReady before initialization
Fixes removing servers from the sidebar
Fix stale version cache
Added guard so wsl functions don't leak to over envrionments

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

How did you verify your code works?

bun dev:desktop

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.

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot added needs:issue needs:compliance This means the issue will auto-close after 2 hours. and removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jun 6, 2026
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Comment thread packages/desktop/src/main/wsl/servers.ts Outdated
@Hona

Hona commented Jun 7, 2026

Copy link
Copy Markdown
Member

Try not to add new mock modules in tests they are naughty

const shell = process.platform === "win32" ? null : getUserShell()
Object.assign(process.env, {
...(shell ? loadShellEnv(shell) : null),
...(shell ? loadShellEnv(shell, getLogger()) : null),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

passing logger here cause shell-env test was getting hit with SyntaxError: Export named 'crashReporter' not found in module '/home/neriousy/programming/opencode/node_modules/.bun/electron@41.2.1+759ce506b1ed1a42/node_modules/electron/index.js'

@Hona Hona changed the title fix: wsl beta stuff fix(desktop): few WSL bugs Jun 8, 2026
@Hona Hona enabled auto-merge (squash) June 8, 2026 01:56
@Hona Hona merged commit 65a3f7f into anomalyco:dev Jun 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WSL Beta bugs

2 participants