Skip to content

fix(launchers): deliver piped --stdin to revdiff; correct the sandbox settings key in docs - #378

Merged
umputun merged 3 commits into
masterfrom
launcher-stdin-sandbox-key
Oct 8, 2026
Merged

umputun merged 3 commits into
masterfrom
launcher-stdin-sandbox-key

Conversation

@umputun

@umputun umputun commented Oct 8, 2026

Copy link
Copy Markdown
Owner

producer | launch-revdiff.sh --stdin never delivered the piped diff. Every backend starts the review from a terminal or server process, so revdiff saw the pane's tty on stdin and rejected it with "--stdin requires piped or redirected input". The launcher now spools its own stdin to a private temp file, capped one byte past revdiff's 64 MiB limit, and redirects that file into the review. Same change in the Claude and Codex copies, with a piped stdin case in the launcher test matrix for all 11 backends.

the sandbox note in README, references/install.md and the site showed excludedCommands under permissions. Claude Code reads it from sandbox. #189 fixed the README and 8a4cfa8 put the old key back.

not covered: under the Claude Code sandbox a pipeline stays sandboxed unless every command in it matches an exclusion, so the piped form still fails on Ghostty and iTerm2 there.

Related to #373

README, install.md and the site showed excludedCommands under "permissions",
which Claude Code does not read. #189 fixed the README and 8a4cfa8 reverted it.
every backend starts the review from a terminal or server process, so revdiff
never inherited the launcher's stdin and rejected the pane's tty. The launcher
now spools its stdin to a file and redirects that file into the review.
the spool was created through a plain redirect, so a piped diff was readable
by other users in a shared /tmp, and cat read to EOF before revdiff's 64 MiB
cap could run. It is now written under umask 077 through head -c, one byte past
the cap. The herdr preserved-pane case is recorded in docs/backlog.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying revdiff with  Cloudflare Pages  Cloudflare Pages

Latest commit: 040b9fe
Status: ✅  Deploy successful!
Preview URL: https://2024524a.revdiff.pages.dev
Branch Preview URL: https://launcher-stdin-sandbox-key.revdiff.pages.dev

View logs

@umputun
umputun merged commit 908e26f into master Oct 8, 2026
7 checks passed
@umputun
umputun deleted the launcher-stdin-sandbox-key branch October 8, 2026 03:02
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.

2 participants