Repository navigation
Open in Explorer, Keep Awake, logs, and the browser broker on Windows - #4732
Merged
Merged
Conversation
SawyerHood
marked this pull request as ready for review
October 2, 2026 16:50
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…dows The open-targets list was empty on Windows and opening returned unsupported_platform. Windows now lists editors whose CLI is on PATH, the default app, File Explorer, and Windows Terminal (PowerShell when it is absent). Paths reach PowerShell through an environment variable, so no path is quoted onto a command line. Co-Authored-By: Claude Code <[email protected]>
Keep Awake only ran caffeinate on macOS. On Windows it now starts a PowerShell process that holds a system-required execution state until the plugin's worker exits. A child that exits straight away is restarted with a growing delay, so a machine where the helper cannot run is not polled every second. Co-Authored-By: Claude Code <[email protected]>
The desktop refused the broker descriptor unless its mode had no group or other bits. Windows reports 0666 for every file, so the desktop never connected to the daemon's browser broker there. The mode and owner checks now apply only where POSIX permissions exist; the regular-file and size checks still apply everywhere. Co-Authored-By: Claude Code <[email protected]>
The log viewer was enabled only on macOS and read logs by spawning tail, which Windows does not have. On Windows it now follows the log file from Node (last lines first, then appended bytes, restarting on truncation), and the View menu item and app command are enabled there. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
force-pushed
the
bb/windows-os-integrations-thr_jensq3v9th
branch
from
October 2, 2026 17:29
4f4228d to
fd28e91
Compare
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.
Human comments
What was wrong
Four desktop and host integrations had only macOS or Linux code paths. Part of #1206.
listWorkspaceOpenTargetsWithRuntimereturned an empty list for any platform other than macOS and Linux, and opening returnedunsupported_platform, so "Open in editor", "Reveal", and "Open in terminal" did nothing on Windows.caffeinate; on Windows it logged a warning and did nothing.tail, which Windows does not have.What changed
One commit per integration:
packages/local-open-targets: Windows lists editors whose CLI is on PATH (found withwhere.exe, launched through the portable launcher so.cmdshims work), the default app, File Explorer, and Windows Terminal, or PowerShell when Windows Terminal is absent. Paths reach PowerShell through an environment variable, so no path is quoted onto a command line. A file reveals withexplorer /select; a remote SSH terminal is still Linux and macOS only.plugins/keep-awake: on Windows the host worker starts a PowerShell process that holdsES_CONTINUOUS | ES_SYSTEM_REQUIREDuntil the worker exits. A helper that exits straight away is now restarted with a growing delay (1 s doubling to 60 s) on every platform, so a machine where it cannot run is not polled every second. UI copy, CLI summary, and the plugin overview say macOS and Windows, and the plugin-build test that pins the built-in'ssupportedflag expects it on Windows.apps/desktop: newlog-file-follower.tsfollows a log file from Node (last lines first, then appended bytes, restart on truncation). The log viewer uses it on Windows and keepstailelsewhere; the menu item and app command are enabled on Windows.apps/desktop/src/desktop-browser-broker-client.ts: the mode and owner checks apply only where POSIX permissions exist. The regular-file and size checks apply everywhere. On Windows the descriptor lives under the user profile, which other users cannot read by default.How you verified
/workspace-open-targetslisted Default App, File Explorer, and Windows Terminal.POST /open-in-targetfor a folder and a file underC:\bb-setup\open test & dir\it's a file.txtreturned 200 for each target; Notepad started with that exact path and a Windows Terminal window opened. A missing path returned 400.bb keep-awake enable,powercfg /requestslisted the PowerShell helper under SYSTEM.bb browser instanceslisted the desktop window, which requires the broker connection.log-file-follower.test.ts,log-viewer.test.ts, and the broker descriptor test pass on the VM.turbo run lint typecheck test --filter='...[origin/main]': 24 of 24 tasks passed. After the rebase onto current main, lint and typecheck pass for the same filter.Not verified: the Server & Daemon Logs window was not opened by hand in the Windows app; opening a path in VS Code or another editor on Windows (none is installed on the VM, so only the unit tests cover the editor command).
🤖 Generated with Claude Code