Skip to content

Improve Windows support and expand VS Code chat workflows - #1

Open
uslanozan wants to merge 8 commits into
codemarc:mainfrom
uslanozan:feat/panel-ux
Open

uslanozan wants to merge 8 commits into
codemarc:mainfrom
uslanozan:feat/panel-ux

Conversation

@uslanozan

Copy link
Copy Markdown

This adds native Windows support to Muse CLI Chat and makes the VS Code panel usable for day-to-day coding sessions. The panel can display permission requests and questions, show the files a turn changed, and preserve drafts while Muse is working.

  • Resolve and launch the native Windows CLI, handle Windows paths, and stop running command trees.
  • Add Panel approvals and questions, independent chat tabs, searchable history, session renaming and branching, and a live model picker backed by Muse's catalog.
  • Preserve drafts and file context, show per-turn diffs, and offer Undo and Redo for workspace changes.
  • Offer Windows compatibility mode when the Panel shell sandbox cannot start. The switch is explicit and uses the existing session compatibility checks.

Validation

  • TypeScript check passed. All 305 automated tests passed.
  • Installed the VSIX in a clean VS Code profile. The model picker loaded six models from the live catalog, and the first Panel chat returned a real response using the selected Spark 1.2 model, confirmed in the session log.
  • Verified sandboxed PowerShell execution in Windows compatibility mode, including readable tool output. Verified the recovery button and new-session flow in VS Code with a controlled sandbox failure response.

Known Windows limitation

With Muse CLI 1.4.20, muse sandbox windows check reports ready while the muse serve host used by Panel mode reports the shell sandbox as unavailable. Panel chat works, but PowerShell calls fail before execution with windows_elevated setup_required. Windows compatibility uses Muse's sandboxed exec path for PowerShell. If the current session requires Panel approvals, the extension offers to start a new session after switching.

uslanozan and others added 8 commits November 11, 2026 14:03
Muse Code now ships for Windows, so stop refusing win32 and fix the
paths that assumed POSIX:

- Resolve bare `muse` to the signed muse-bin-<version>.exe named by
  .muse-version in %LOCALAPPDATA%\Programs\muse (then PATH). The
  muse.cmd shim cannot be spawned with shell:false, and routing the
  prompt through cmd.exe would shell-parse it; a configured muse.cmd
  path maps to the exe beside it.
- Stop ends the whole process tree via taskkill /T and still reports
  the turn as interrupted (Windows has no SIGINT/SIGTERM).
- Match Muse's Windows session-index keys (C:\... and \?\C:\...) when
  VS Code reports c:\...; sessions were not found before.
- Workspace-relative paths for open editors/diagnostics compare
  separators and drive-letter case correctly.
- File chips and link detection accept backslashes and drive letters;
  file:///C:/... maps to C:\...; .html reports open via Explorer.
- Run typecheck and tests on windows-latest in CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Modal dialogs already get a Cancel button; the explicit "Cancel" item
showed twice on Windows (and Linux).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- One-line header with icon buttons; single composer box holding attach,
  mode/model/effort pills and a single Send/Stop button; drop the
  duplicate History button and the always-visible help text.
- Empty-state welcome carries the tips and the unofficial notice.
- Assistant replies render without a card; tool calls are compact rows
  with a status dot; themed inline code, code blocks and links.
- Inline SVG icons (the webview CSP blocks icon fonts).
- New "Move Chat to Right Side Bar" command opens VS Code's Move View
  picker for the chat view, so it can live in the secondary side bar
  without contributing a container there (Cursor rejects that).
- View toolbar keeps two icons; the rest move to the overflow menu.

Element ids and pill text are unchanged, so chat.js and its tests are
untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Declare a secondary-side-bar container (muse-secondary /
  muse.chatViewSecondary) next to the activity-bar one and gate each on
  muse.doesNotSupportSecondarySidebar, set at activation for VS Code
  < 1.106 and Cursor. Same pattern as Codex and Claude Code; replaces
  the Move View picker command.
- muse.toggleChat in the editor title: show the chat, or close its side
  bar when it is already visible.
- Pills move under the input box with short labels (full text in the
  tooltip) so they fit a narrow side bar; softer user messages, lighter
  tool labels, shorter placeholder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The editor-title toggle only shows while an editor is open, and
muse.openChat opens the terminal in interactive mode, so once the side
bar was closed there was no Muse button to bring the chat back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uslanozan
uslanozan marked this pull request as ready for review November 18, 2026 14:54
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