Repository navigation
fix: preserve prompt text in pnpm example commands - #24
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesRemoves extra argument separators from pnpm example commands so the SDK receives the intended prompt. Example: Run the custom-transport recipe with pnpm 10.34.5 and the prompt "test prompt".
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a prompt-forwarding bug still present on main; the supplied terminal trace resolves the previous proof blocker, and no actionable defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe cookbook's pnpm scripts launch recipes and starter CLIs that join command arguments into prompts passed to the SDK. flowchart LR
A[Documented command] --> B[pnpm script]
B --> C[Recipe or starter CLI]
C --> D[Argument reader]
D --> E[SDK input]
E --> F[Transport]
Technical reviewBest possible solution: Land the focused command corrections while preserving the existing argument readers and SDK contracts. Do we have a high-confidence way to reproduce the issue? The argument readers preserve the separator, matching the contributor's before-and-after terminal trace; this read-only review executed no target code. Is this the best way to solve the issue? Removing the separators where commands are authored is the smallest complete fix and preserves legitimate prompt text handling. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 27bcf94d3158. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 12, 2026, 9:27 AM ET / 14:27 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged as a6e9cee. Reproduced with the pinned pnpm 10.34.5 and the in-memory SDK transport: the old command sends "-- test prompt"; the corrected command sends exactly "test prompt". Full pnpm check passed on Linux, including all 27 tests, formatting, typecheck, lint, docs, four starter builds, and both corrected CLI smoke commands. Refreshed exact-head CI passed at ca9e341: https://github.com/openclaw/cookbook/actions/runs/43578405102. Independent review found no actionable P0–P2 findings. Thanks @embrace897. |
Cookbook commands using
pnpm <script> -- "prompt"pass the separator into the example as a literal argument. Remove the extra separator from the README commands and smoke scripts so the SDK receives the intended prompt.With pnpm 10.34.5, the offline custom-transport recipe recorded
-- test promptbefore the change andtest promptafterward. Formatting, type checking, lint, docs checks, all four example builds and both offline smoke commands passed. The full Windows suite reported 24 passes and three environment failures involving symlink permissions and subprocess lookup ofpnpm.Behavior proof
Verified PR head
f70b7392e1f4fb3db251bdbaa4a2276f4b6c0f76on Windows with Node 24.15.0, pnpm 10.34.5, and the repository's in-memory SDK transport.The lines above excerpt the recipe JSON and smoke output. I built both starters before running smoke. The comparison uses the old and corrected command forms on the same checkout.