mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-10-26 06:19:49 +00:00
d1171557ef
Codex round 2 finding on f31d5d64. Text starting with "-" (a dash-led sentence, or literal text like "-ship it") is parsed as a flag by cobra's default scanner, on both the CLI and stdio MCP (which shells out to this same command). Pre-existing and class-wide — `pad item search "-x"` fails the same way — so the general stdio fix across every command is filed as BUG-3142 rather than done here; BuildCLIArgs is untouched. This command's own help now shows the workaround: an Example section with `pad playbook match -- "-ship it"`. skills/pad/SKILL.md's rung-3 routing entry calls it the same way, with a one-line reason, and notes the MCP form is unaffected (a structured `text` param, not a CLI token). New CLI test asserts BOTH directions: `playbook match "-ship it"` (no --) fails at cobra's flag parser and never reaches the server; `playbook match -- "-ship it"` succeeds and the server receives the text with its leading dash intact. Ran both legs — see the test. Claude-Session: https://claude.ai/code/session_01ByMjAhvdWgbAWWeGE9jwWd