Repository navigation
fix(plugin-profiles): print a PowerShell launch line on Windows - #18250
Conversation
Closes #18219 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RAoAtSsNvSGmqHFVRFAugW
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 16c3c97b69
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review: PR #18250, incremental since 16c3c97No security issues found. This was a blocking-only review: the lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would be reported. I read every hunk of all 3 files in scope: the changeset fragment, What was checkedThe new branch in
The test only updates its assertions to the new file-based behaviour. Settled threads. Both threads on critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): PR #18250, d7703c7This was an incremental review of the push since What changed. In Checked, no finding:
Closing issue #18219. "A command a Windows shell can run" is now met for the inline-JSON case as well. The new test covers that case through the launch path, not only through Not verified by me: that the tests pass, and that the printed line works on Windows PowerShell 5.1. Both are the author's claims; I ran nothing. Loosened checks would be marked: fail (the prompt had no No plugin manifest changed in this push. The fragment stays Verifier dropped 0 of 0 candidates. |
With no profile, launch put inline --with JSON straight into --settings. Windows PowerShell 5.1 strips the quotes inside a native command's argument, so claude received invalid JSON. Write the JSON to a session file on every platform and pass its path, as the profile branch already does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #18219
Summary
profiles.mjs launchalways printedenv -u ... claude --settings <file>, which PowerShell and cmd cannot run, so a Windows lane or handoff could not start a session in a profile from that line.Fix
scripts/profiles.mjs: new exportedlaunchCommand(argv, platform). Onwin32it printsRemove-Item Env:PLUGIN_PROFILES_SESSION, Env:PLUGIN_PROFILES_SESSION_FILE, Env:SESSION_SETTINGS_FILE -ErrorAction Ignore; claude --settings '<file>', with PowerShell single-quote quoting; other platforms keep theenv -uline.argvkeeps its shape, because the fleet relay's Windows script reads the variables after-uand the words afterclaudefrom it.plugins/fleet/skills/reach/reference/relay.md: drops the sentence calling the printed command a POSIX line on Windows.Verification
#18219checks the Windows line (a path with a space and an apostrophe) and the unchanged POSIX line; the launch tests pass (16).Remove-Itemline clears a set variable in Windows PowerShell 5.1 and pwsh 7 on a Windows host.Related
Remove-Item Env:clears the variables in the PowerShell session it runs in, not only forclaude; they are profile markers inherited from an earlier session, so clearing them is the intent.🤖 Generated with Claude Code
https://claude.ai/code/session_01RAoAtSsNvSGmqHFVRFAugW