BuildRequest slurps stdin on no-body ops — GETs hang forever under held-open pipes
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with .speakeasy/patches/internal/flagutil/metadata.go.patch and the generated internal/flagutil/metadata.go mentioned in the issue. Inspect BuildRequest's stdin handling and compare the carried fix in PR #48. Done means no-body operations, including GETs and --dry-run, no longer read held-open stdin, while body-taking operations retain stdin-as-body behavior.
Written by the indexing model from the issue text.
Description
Behavior: every command — including body-less GETs and --dry-run — blocks forever when stdin is a held-open pipe or socket. tail -f /dev/null | growthbook projects list hangs with zero output; CI runners and agent harnesses that keep the child's stdin open hit this constantly.
Root cause: BuildRequest's "Priority 2: stdin" branch calls io.ReadAll(stdin) whenever stdin is a non-char-device, without checking whether the operation takes a body at all.
Carried fix: .speakeasy/patches/internal/flagutil/metadata.go.patch (PR #48) gates the read on bodyFlagName != "". Body-taking ops keep the stdin-as-body feature (a held-open pipe still blocks those — defensible, documented behavior; see also #25).
Retire when: Speakeasy's generated flagutil/metadata.go skips the stdin read for no-body operations.
- Dominant language
- Go
- Stars
- 1
- Forks
- 0
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 18
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from growthbook/cli
-
ConfigRevision responses omit scheduledPublishAt/lock fields that are persisted (spec/back-end) Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
growthbook/cli#55 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/cli#29 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
growthbook/cli#27 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
growthbook/cli#26 ·
-
bug custom
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
growthbook/cli#25 ·
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·