paperclip/packages/adapters
LeeJ a53cc8819b
fix(claude-local): pipe print prompt via stdin (#9500)
Fixes #2444.
Refs #4947.

The `claude_local` adapter launched Claude Code as
`claude --print - --output-format stream-json --verbose`. Paperclip writes
the rendered task prompt to Claude's stdin, but current Claude Code releases
can treat the stale `-` positional marker as the prompt itself, so Claude
received the literal string `"-"` instead of the issue body. The customer's
task ran against no content at all.

The fix keeps `--print` mode and stdin delivery, and removes the stale `-`.

Adds regression coverage on both sides of the delivery path: a `claude_local`
assertion that `--print` is present, `"-"` is absent and the prompt still
reaches stdin, and an adapter-utils case proving the sandbox run-log command
wrapper preserves stdin while streaming logs.

Authored by @elJayAdvisor, whose commit is included unchanged with their
authorship. The branch had gone stale and was showing CONFLICTING; the
conflict was in `execution-target-sandbox.test.ts`, where their new test was
added at the same point as master's `creates the process session directories
only in the launch exec` case and git interleaved the two into one hunk.
Resolved by taking master's file and re-inserting their test whole, after
checking every helper it needs still exists there.

Verified: the bug was still live on master at `execute.ts:838`; the
regression test genuinely catches it — restoring the stale `-` fails
`expect(captured.argv).not.toContain("-")`; `@paperclipai/adapter-claude-local`
and `@paperclipai/adapter-utils` typecheck clean; 67 pass across the two test
files. All CI gates green; Greptile 5/5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-14 11:34:15 -07:00
..
claude-local fix(claude-local): pipe print prompt via stdin (#9500) 2026-08-14 11:34:15 -07:00
codex-local fix(codex-local): skip benign stderr warnings when deriving the fallback run error (#10003) 2026-08-12 16:09:10 -07:00
cursor-cloud fix(adapters): keep user-scoped env bindings on the agent Test action (#10926) 2026-08-05 17:18:41 -07:00
cursor-local fix(adapters): keep user-scoped env bindings on the agent Test action (#10926) 2026-08-05 17:18:41 -07:00
gemini-local fix(adapters): keep user-scoped env bindings on the agent Test action (#10926) 2026-08-05 17:18:41 -07:00
grok-local test(grok-local): isolate billing env in usage cost test (#11285) 2026-08-13 13:58:05 -07:00
hermes fix(hermes): surface silent nonzero exit failures (#10107) 2026-08-12 16:09:35 -07:00
hermes-gateway build(deps-dev): bump @types/node from 22.19.21 to 22.20.1 (#10304) 2026-07-28 10:48:45 -07:00
openclaw-gateway fix(openclaw-gateway): use per-agent claimedApiKeyPath in wake text (#4668) 2026-08-05 00:53:43 -05:00
opencode-local fix(opencode-local): make the model-availability probe non-fatal (#10294) 2026-08-12 16:44:03 -07:00
pi-local fix(adapters): keep user-scoped env bindings on the agent Test action (#10926) 2026-08-05 17:18:41 -07:00
AUTHORING.md fix(adapter-utils): carry the workspace origin remote into transported git workspaces (#10873) 2026-08-05 10:24:01 -07:00