Repository navigation
feat(threads): open a thread's folder on its computer - #494
Merged
Merged
Conversation
Adds "Open folder" to the thread context menu and an icon next to the directory in thread details. The gateway checks the owner and sends the non-durable RevealPath command (capability reveal_path) with the thread's directory; the worker opens it in the system file manager (Finder, Explorer, xdg-open). Explorer exits with 1 after opening a folder, so on Windows only a failed start counts as an error, also for worktree reveal.
This was referenced Nov 10, 2026
M-Zajace
added a commit
that referenced
this pull request
Nov 10, 2026
Open folder ran on the thread's worker, so a linked Mac's thread opened Finder on the Mac when clicked on Windows. The action now shows only in the desktop app with its own gateway, for threads of its bundled worker (new Worker.desktop_bundled), and linked computers no longer receive RevealThreadDirectory. Fixes: #494
M-Zajace
added a commit
that referenced
this pull request
Nov 10, 2026
Open folder ran on the thread's worker, so a linked Mac's thread opened Finder on the Mac when clicked on Windows. The action now shows only in the desktop app with its own gateway, for threads of its bundled worker (new Worker.desktop_bundled), and linked computers no longer receive RevealThreadDirectory. Fixes: #494
M-Zajace
added a commit
that referenced
this pull request
Nov 10, 2026
…#513) Open folder showed nothing on Windows (Explorer started hidden by windowsHide) and macOS (open -R only selected the folder), and a linked computer's thread opened the folder on that computer. The opener now starts detached with a visible window, and the action shows only for folders of this desktop app's bundled worker (ui.Worker.desktop_bundled); linked computers no longer receive RevealThreadDirectory. Fixes: #494
This was referenced Nov 13, 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.
Summary
threadActions) and an icon button next to Directory/Worktree in thread details.RevealThreadDirectory(owner-scoped, active thread only) sends the non-durable worker commandRevealPath(field 220, capabilityreveal_path) with the thread'scwd; the worker requires an absolute, existing directory and opens it with the system file manager (open -Ron macOS,explorer.exeon Windows,xdg-openon Linux).RevealThreadDirectoryis in the served allowlist, so a mirrored thread opens the folder on its home computer (same asRevealWorktree).revealInFileManageralso fixes worktree reveal on Windows: Explorer exits with 1 after opening a folder, so only a failed start counts as an error.docs/worktrees.mdupdated.Verification
bun run gencommitted; typecheck (domain, worker, gateway, web) and lint of changed files clean.Copy audit (docs/copy.md §8)
Open folder(verb first, sentence case).This computer is offline. Reconnect it to open the folder.andUpdate this computer to open folders from Canopy.(what happened → what to do). Fallback toastCould not open the folder.No file manager is available on this computer. Copy the path instead./The file manager could not open the folder. Copy the path instead.