Skip to content

plugin-profiles: launch prints an env -u command that Windows cannot run #18219

Closed

Description

@kyle-sexton

Refs: #16428

Steps to reproduce

  1. On Windows, run node <plugin-root>/scripts/profiles.mjs launch <profile> (or a launcher that uses its output).
  2. Read the printed command or the argv in --json output.

Expected behavior

A command a Windows shell can run, for example clearing the profile variables in PowerShell before starting claude.

Actual behavior

launch always builds ["env", "-u", <var>, ..., "claude", ...settingsArgs] (plugins/plugin-profiles/scripts/profiles.mjs:739), with no win32 branch. env -u is not available in PowerShell or cmd, so a Windows lane or handoff cannot start a session in a profile from that line.

Severity

Medium

Severity justification

It blocks the one-session scope on every Windows lane; Linux and WSL are unaffected.

Suggested fix location

plugins/plugin-profiles/scripts/profiles.mjs:736-742 (launch): emit a platform-specific command on win32, or have start (which already runs claude.exe directly) be the documented Windows route; add a Windows-path test.

Environment

plugin-profiles 0.9.5, Claude Code 2.1.330. Found by a read-only code audit; not run on Windows.

Owned by the session that filed it (session-owned); worked, if at all, in the profiles follow-up at the end of that session.

Activity

  1. added
    session-owned
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    session-owned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions