You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 75d07ab
Browse filesBrowse the repository at this point in the historyBrowse files
feat(desktop): shell integration for PowerShell and Git Bash on Windows
The agent terminal was refused with NO_SHELL_INTEGRATION on Windows
because prompt hooks existed only for zsh and bash. PowerShell now gets
the same OSC 633 markers: `prompt` reports the directory, previous exit
code and prompt start, and `PSConsoleHostReadLine` reports each command
line and its start, as Windows Terminal and VS Code do. The hooks travel
as -EncodedCommand because dot-sourcing a file is blocked by the default
execution policy on Windows clients, and ReadLine is called with two
arguments only: PSReadLine 2.0's third parameter is a CancellationToken,
and a bool coerces to a cancelled one, which made the prompt loop.
Git for Windows' bash is offered through a Windows-only Terminal Shell
submenu when Git is installed; the existing bash hooks work there, with
cygpath translating the reported directory to a Windows path. The choice
persists as `terminalShell` in settings.
Also: the marker parser unescapes `\\` so Windows paths survive the
hooks' escaping, tab titles split on either separator, tmux probing is
skipped on Windows, and detectShell recognises `.exe` names on any host.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/desktop/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,9 @@ Build on a Windows host (electron-builder cross-compiles NSIS from macOS/Linux o
111
111
- Signing: set `CSC_LINK`/`CSC_KEY_PASSWORD` to an Authenticode `.pfx`; unsigned builds trigger SmartScreen on first launch.
112
112
- Bun does not run electron's `postinstall` on Windows; if `node_modules/electron/dist/electron.exe` is missing after `bun install`, run `node node_modules/electron/install.js` once.
113
113
114
-
Windows parity gaps (deliberate, see "Known caveats"): no auto-update (the updater is a no-op off macOS — the installer must be re-downloaded), no Help-menu docs search, no Chrome cookie/password import, no Terminal.app/iTerm2 theme import, and the agent terminal launches PowerShell uninstrumented (shell integration is zsh/bash only), so the agent is refused with `NO_SHELL_INTEGRATION` while the user's terminal still works.
114
+
The agent terminal launches PowerShell (`pwsh`, else Windows PowerShell 5.1) with full shell integration: the hooks are passed as `-EncodedCommand` (a dot-sourced file would be blocked by the default execution policy), `prompt` is wrapped to report the directory, exit code and prompt start, and `PSConsoleHostReadLine` is wrapped to report each command line and its start — the arrangement Windows Terminal and VS Code use. Git for Windows' bash is offered under the app menu's **Terminal Shell** submenu when Git is installed; it uses the existing bash hooks, with `cygpath -w` translating the reported directory to a Windows path. The choice persists as `terminalShell` in `settings.json`. tmux integration is skipped on Windows.
115
+
116
+
Windows parity gaps (deliberate, see "Known caveats"): no auto-update (the updater is a no-op off macOS — the installer must be re-downloaded), no Help-menu docs search, no Chrome cookie/password import, and no Terminal.app/iTerm2 theme import.
115
117
116
118
Local unsigned pre-release share: `SIM_DESKTOP_DEFAULT_ORIGIN=https://www.dev.sim.ai bun run package:share` builds a DMG whose fresh installs default to that origin (baked at build time; official builds leave it unset → prod) and skips per-file signature timestamps. Recipients must clear quarantine once: `xattr -cr /Applications/Sim.app`.
0 commit comments