fix: append < /dev/null to altimate-code run invocations (stdin-wedge workaround)#12
Open
sahrizvi wants to merge 1 commit into
Open
fix: append < /dev/null to altimate-code run invocations (stdin-wedge workaround)#12sahrizvi wants to merge 1 commit into
< /dev/null to altimate-code run invocations (stdin-wedge workaround)#12sahrizvi wants to merge 1 commit into
Conversation
`altimate-code run "<task>" --yolo` wedges silently on inherited stdin when invoked as a subprocess (Claude Code's Bash tool, CI, `subprocess.run(..., stdin=None)`, plugin hosts that don't pin stdin to `/dev/null`). `Bun.stdin.text()` waits forever for an EOF that never arrives, producing a 0% CPU hang with no session created and no error. Until the source-side fix in AltimateAI/altimate-code#935 lands in a tagged release, every invocation pattern in this skill needs `< /dev/null` to close stdin from the caller side. Otherwise any Skill-fire from a non-TTY parent hangs. Adds the redirect to all 5 documented invocations (minimal, recommended, and the 3 example patterns). One HTML comment near the first occurrence documents the lineage and points at the tracking issue for the cleanup, so the next maintainer can lift the workaround without spelunking git history. Closes #11 will fire when the workaround is removed; this PR adds the workaround in.
suryaiyer95
reviewed
Jun 13, 2026
Comment on lines
+44
to
+48
| <!-- DEPRECATED: remove `< /dev/null` once minimum supported altimate-code | ||
| contains AltimateAI/altimate-code#935 (stdin-wedge fix). | ||
| Tracked: https://github.com/AltimateAI/data-engineering-skills/issues/11 | ||
| Applies to every `altimate-code run` invocation in this file. --> | ||
|
|
Collaborator
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.
Summary
The
altimate-codeskill instructs invocations like:When the host (Claude Code's Bash tool, a CI runner,
subprocess.run(..., stdin=None), a plugin spawn withoutstdio: "ignore") inherits stdin into the child without closing it,altimate-code runhangs at 0% CPU forever.Bun.stdin.text()waits for an EOF that never arrives — no session created, no log, no error, indistinguishable from a deadlock.Full repro and root cause: AltimateAI/altimate-code#934.
This PR adds
< /dev/nullto every documentedaltimate-code runinvocation inskills/altimate-code/SKILL.mdas a transitional workaround that closes stdin from the caller side. Five invocations updated: minimal, recommended, and the three example patterns (expensive-queries, lineage, table-profile).Why this is a workaround, not the final fix
The proper fix is at the source — AltimateAI/altimate-code#935 tightens the stdin-read guard in
run.tsso the wedge cannot trigger regardless of caller-side stdin handling. That PR is out for review; once it ships in a taggedaltimate-coderelease, the< /dev/nullredirect here becomes redundant.The cleanup is tracked as a separate issue with explicit action items: #11 — "Remove
< /dev/nullworkaround once min altimate-code version includes stdin-wedge fix." When #935 ships, the followup PR will (a) replace each< /dev/nullwith a min-version prereq check in the existing "Prerequisite Check" section, and (b) remove the HTML comment added by this PR.What this PR contains
< /dev/nullappended (multi-line continuations get the redirect on a continuation line; single-line invocations get it inline).What this PR does NOT contain
altimate-codecallsaltimate-code runas a subprocess).Test plan
altimate-code-previewswap + this same< /dev/nullpattern) has been in use against real workloads since 2026-06-04, no regressions observed.altimate-code run "say hi" --yolo < /dev/nullagainst the current unpatchedaltimate-code0.8.7 binary — confirm it returns in ~1s instead of hanging.< /dev/nulldoesn't break the pipe-only path (it doesn't — pipe-only invocations don't pass a positional message, and this PR only changes invocations that do pass a positional).Links
< /dev/nullworkaround once min altimate-code version includes stdin-wedge fix #11plugin-skill-experiments/03-issues-and-fixes.mdIssue docs: add model info and benchmark note to Snowflake section #3