Skip to content

Fix session popup: cross-platform Copilot Console & VS Code, remove Terminal#172

Merged
PureWeen merged 2 commits intomainfrom
fix/the-launch-copilot-menu-item-doesnt-work-20260221-1638
Feb 21, 2026
Merged

Fix session popup: cross-platform Copilot Console & VS Code, remove Terminal#172
PureWeen merged 2 commits intomainfrom
fix/the-launch-copilot-menu-item-doesnt-work-20260221-1638

Conversation

@PureWeen
Copy link
Copy Markdown
Owner

Summary

Fix three issues in the session context menu popup (SessionListItem.razor):

  1. Copilot Console — Was macOS-only (bash script + open -a Terminal). Now works cross-platform: Windows writes a .ps1 script and launches it with powershell.exe -ExecutionPolicy Bypass -NoExit, matching the existing LaunchCopilotInTerminal pattern in SessionSidebar.razor. Uses single-quoted strings to prevent PowerShell from interpreting (guid) as subexpressions.

  2. Terminal button — Removed from the menu (no longer needed).

  3. VS Code — Was using UseShellExecute = false which can't find code.cmd on Windows. Now uses cmd.exe /c code on Windows, keeping the direct code invocation on macOS.

Testing

  • Verified Copilot Console launches correctly on Windows with GUID session IDs (no subexpression parsing errors)
  • Verified VS Code opens to the session working directory on Windows
  • Build succeeds on net10.0-windows10.0.19041.0
  • 879/883 tests pass (4 pre-existing DiffParserTests failures unrelated to this change)

PureWeen and others added 2 commits February 21, 2026 11:02
…erminal

- OpenInCopilotConsole: add Windows path using PowerShell script (matching
  LaunchCopilotInTerminal pattern from SessionSidebar), keep macOS bash path
- OpenInVSCode: use cmd.exe /c code on Windows (code.cmd not found without
  shell), keep direct invocation on macOS
- Remove Terminal menu item and OpenInTerminal method (no longer needed)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ion parsing

PowerShell double-quoted strings interpret (guid) as a subexpression,
causing 'term not recognized' errors. Switch to single-quoted strings
with '' escaping for embedded values.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen merged commit 98411b8 into main Feb 21, 2026
PureWeen added a commit that referenced this pull request Feb 21, 2026
Drop 3 Copilot Console debug commits (fixed properly on main in #172).
Resolve WsBridgeServer conflict: keep multi-agent + FetchImage handlers.
1095 tests passing (4 pre-existing DiffParser \r failures from main).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen deleted the fix/the-launch-copilot-menu-item-doesnt-work-20260221-1638 branch February 22, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant