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): open in Windows Terminal and list only installed apps on Windows by Hona · Pull Request #65320 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Nov 21, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Screenshots

The review panel's Open in menu, cropped from the app window. App detection ran against a PATH holding only stand-in launchers (empty scripts named code, powershell, pwsh and wt), so the menus show what each build makes of exactly those apps.

Apps present Before After
VS Code, PowerShell and Windows Terminal Before: every app listed, no Windows Terminal After: VS Code, PowerShell, Windows Terminal
VS Code only Before: every app listed After: VS Code only

Before, every app is listed whether it is installed or not, and Windows Terminal is missing. After, the menu lists File Explorer plus the apps that are found, Windows Terminal included.

Issue for this PR

No linked issue. Ported from the native Rune desktop build (anomalyco/rune-desktop, features/open-in/src/windows.rs).

Type of change

  • New feature
  • Bug fix

What does this PR do?

Two changes to the file panel's Open in menu on Windows.

Windows Terminal is listed. It opens a new Windows Terminal window in the file's folder (wt -w new -d ., with the folder as the working directory), never a tab in a window the user already has open. The folder is never put on wt's command line, because Windows Terminal splits its arguments on ; even inside quotes, so a repository named a;b would start a second command. The entry has its own drawn mark (windows-terminal.svg) and the English label Windows Terminal; other locales fall back to it until translated.

Only installed apps are listed. checkAppExists answered true for every app on Windows, so VS Code, Cursor, Zed and Sublime Text showed up on machines without them, and picking one failed. It now asks resolveAppPath, which runs the where lookup it already had, and when where finds nothing it also looks in the folder each installer uses (for example %LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe, %ProgramFiles%\Sublime Text\sublime_text.exe, or Windows Terminal's Store alias in %LOCALAPPDATA%\Microsoft\WindowsApps). An app found that way also opens, since openPath resolves the same path.

PowerShell 7 gets no entry of its own: the existing PowerShell entry already opens pwsh when it is installed.

macOS and Linux are unchanged: the Windows Terminal entry is only in WINDOWS_OPEN_APPS, and the new launch and detection code runs only when process.platform === "win32". In app-icon.tsx, typeof document !== "object" became !("document" in globalThis) (same result) because the file was touched and lint:changed flags the old check.

How did you verify your code works?

  • bun test src/main/files/apps.test.ts on Windows, with an empty PATH and scratch LOCALAPPDATA and ProgramFiles: Windows Terminal's alias is found in its installer's folder, and Sublime Text and VS Code are reported missing. On dev the same test fails, because every app reads as installed. It is skipped off Windows.
  • bun run typecheck:tsc in packages/desktop, bun typecheck in packages/gui-plugins and packages/ui, bun run lint:changed origin/dev clean.
  • The menus above, from the built app before and after.
  • Not tested: launching Windows Terminal from the menu.

Checklist

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

Added by the opencode bot (AI-generated).

Related: #61678

Sorry, something went wrong.

Uh oh!

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

All reactions
@Hona
feat(desktop): open in Windows Terminal and list only installed apps …
b5235c7
…on Windows
opencodejr[bot]
opencodejr Bot reviewed Nov 21, 2026
View reviewed changes

@opencodejr opencodejr Bot 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.

I couldn't verify this: everything new only runs on Windows, and my sandbox is Linux. The new test is skipped here. typecheck:tsc passes in packages/desktop, packages/gui-plugins and packages/ui.

Reading the code, the change looks sound:

  • Detection and opening share resolveAppPath, so an app found in its installer's folder also opens.
  • PowerShell still falls back from pwsh to powershell.
  • The Windows Terminal launch keeps the folder off wt's command line.
  • macOS and Linux are untouched.

The new menu entry and the always-true → real check on Windows still need a run in the built app. A screenshot of the menu on a Windows machine would help.

Public API: unchanged. The new windows-terminal icon name and the open.app.windowsTerminal key are internal to the desktop UI.

Related: #61678

Sorry, something went wrong.

Uh oh!

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

All reactions
@Hona
Merge remote-tracking branch 'origin/dev' into open-in-terminal
a6be5da
opencodejr[bot]
opencodejr Bot reviewed Nov 21, 2026
View reviewed changes

@opencodejr opencodejr Bot 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.

The only new commit merges dev. This PR's own diff is identical to the version I reviewed, and none of the merged changes touch the files this PR changes. typecheck:tsc in packages/desktop still passes. I still couldn't run the Windows-only behaviour here. A screenshot of the menu on Windows would still help.

Public API: unchanged.

Sorry, something went wrong.

Uh oh!

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

All reactions
@Hona
Hona merged commit f05c0fd into dev Nov 21, 2026
12 checks passed

Uh oh!

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

@Hona
Hona deleted the open-in-terminal branch November 21, 2026 08:27
@Edo771977 Edo771977 mentioned this pull request Nov 21, 2026
chore: merge upstream/dev into the fork Edo771977/opencode#98
Merged
This was referenced Nov 22, 2026
fix(desktop): list only installed apps in Open in on Linux #63406
Open
[Bug] Desktop (Linux): "Desktop IPC handler failed" when opening files with VS Code if code is not installed – plus feature request: VSCodium support #63194
Open
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

1 participant

@Hona
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.