Repository navigation
fix(launchers): deliver piped --stdin to revdiff; correct the sandbox settings key in docs - #378
Merged
Merged
Conversation
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.
Deploying revdiff with
|
| Latest commit: |
040b9fe
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2024524a.revdiff.pages.dev |
| Branch Preview URL: | https://launcher-stdin-sandbox-key.revdiff.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
producer | launch-revdiff.sh --stdinnever 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 apiped stdincase in the launcher test matrix for all 11 backends.the sandbox note in README,
references/install.mdand the site showedexcludedCommandsunderpermissions. Claude Code reads it fromsandbox. #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