Skip to content

Fixed command display: shell-quote args for copy-paste into terminal - #12

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/cmdline-esc
Apr 11, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/cmdline-esc

Conversation

@oleg68

@oleg68 oleg68 commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

The launch command logged and shown in the error panel is now properly shell-quoted. Arguments containing special characters (JSON braces, quotes) are wrapped in double-quotes with internal quotes escaped:

  • Linux/macOS: claude --mcp-config "{"mcpServers":...}" --continue
  • Windows: claude.exe --mcp-config "{""mcpServers"":...}" --continue

The launch command logged and shown in the error panel is now properly
shell-quoted. Arguments containing special characters (JSON braces, quotes)
are wrapped in double-quotes with internal quotes escaped:
- Linux/macOS: claude --mcp-config "{\"mcpServers\":...}" --continue
- Windows:     claude.exe --mcp-config "{""mcpServers"":...}" --continue

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 51e52f4 into nbplugins:main Apr 11, 2026
1 check passed
@oleg68
oleg68 deleted the bugfix/cmdline-esc branch April 11, 2026 17:10
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