spawn/sh/e2e
A 9448cb8ca0
fix(e2e): fix _stage_prompt_remotely to embed prompt inline instead of stdin pipe (#2897)
The stdin piping approach was broken: _hetzner_exec runs remote commands via
"printf '%s' 'ENCODED_CMD' | base64 -d | bash", which connects bash's stdin to
the base64 pipe rather than SSH's outer stdin. So `cat > /tmp/.e2e-prompt` read
from EOF — the encoded prompt was never written to the remote file.

Fix: embed the validated base64 prompt directly in the command string using
printf. This is safe because _validate_base64 ensures the prompt contains only
[A-Za-z0-9+/=] — no characters that can break out of single quotes or inject
shell metacharacters.

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
2026-03-23 12:19:51 +07:00
..
lib fix(e2e): fix _stage_prompt_remotely to embed prompt inline instead of stdin pipe (#2897) 2026-03-23 12:19:51 +07:00
e2e.sh feat(e2e): diff-aware AI review with e2e-last-green tracking (#2893) 2026-03-23 11:21:35 +07:00
interactive-harness.ts fix(qa): load ANTHROPIC_AUTH_TOKEN as ANTHROPIC_API_KEY for interactive E2E (#2894) 2026-03-23 11:24:26 +07:00