fix(windows): restore agents with the actual terminal shell - #13238
fix(windows): restore agents with the actual terminal shell#13238innocarpe wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe change adds optional resolved shell fields to daemon, provider, and renderer PTY results. The daemon forwards the selected shell for new sessions, restores, and reattachments. The renderer stores the value in local session metadata. Cold-restore command resolution uses the provider-resolved shell before the tab-level shell. Tests cover transport metadata and stale-shell replacement during Windows cold restore. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ef065076-75de-4d43-ac2e-2a432b6aef55
📒 Files selected for processing (12)
src/main/daemon/daemon-create-or-attach-result.tssrc/main/daemon/daemon-pty-adapter.tssrc/main/daemon/daemon-server.tssrc/main/daemon/terminal-host-create-contract.tssrc/main/daemon/terminal-host-session-create.tssrc/main/providers/local-pty-provider.tssrc/main/providers/pty-spawn-result.tssrc/renderer/src/components/terminal-pane/pty-connection.test.tssrc/renderer/src/components/terminal-pane/pty-connection.tssrc/renderer/src/components/terminal-pane/pty-transport-types.tssrc/renderer/src/components/terminal-pane/pty-transport.test.tssrc/renderer/src/components/terminal-pane/pty-transport.ts
39b3410 to
1f01533
Compare
Sync update (
|
Description
Cold-restored agent commands now use the shell executable actually selected by the PTY provider instead of replaying the configured Windows shell setting.
The provider-resolved shell is carried through local and daemon session metadata so a stale
wsl.exepreference cannot make a PowerShell pane parse POSIX quoting.Focused fix
Preserves
Evidence
pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-transport.test.ts -t "provider-resolved shell"pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/components/terminal-pane/pty-connection.test.ts -t "provider-resolved shell"pnpm run typecheck:web, andpnpm exec tsc --noEmit -p config/tsconfig.node.json --pretty falsepassed.User-regression-tradeoffs
Fixes #13095