Repository navigation
Claude Code launches on macOS without kqueue stdin errors - #176
Closed
webdevcody wants to merge 2 commits into
Closed
webdevcody wants to merge 2 commits into
webdevcody wants to merge 2 commits into
Conversation
Co-authored-by: Web Dev Cody <webdevcody@gmail.com>
Co-authored-by: Web Dev Cody <webdevcody@gmail.com>
This was referenced Oct 21, 2026
Contributor
Author
|
Closing as superseded by two merged PRs:
This branch now conflicts with Generated by Claude Code |
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.
This fixes the Claude Code launch regression on macOS by reopening the agent's concrete PTY device instead of the
/dev/ttyalias after the login-shell rc-file shim runs.Contents: Bug fix · Proof · Risk · Technical overview
Bug fix
/dev/null, then the launch prelude reopens that saved device for the agent CLI.sequenceDiagram participant Shim as /bin/sh shim participant Shell as login shell rc files participant Agent as Claude Code Shim->>Shim: NEBULA_PANE_TTY=$(tty) Shim->>Shell: exec </dev/null; exec shell -l -i -c ... Shell->>Shell: rc files see non-TTY stdin Shell->>Agent: exec <"$NEBULA_PANE_TTY"; unset NEBULA_PANE_TTY; claude ...Proof
cargo buildpassed.cargo testpassed.cargo clippy -- -D warningspassed./dev/tty.Risk
🟢 Low.
ttycall during PTY launch only.Rollback: reverting this commit restores the previous
/dev/ttyreopen behavior and would bring back the macOS Claude/Bun kqueue failure.Technical overview
nebula_core::envnow namesNEBULA_PANE_TTYbeside the other environment constants.crates/nebula-daemon/src/registry.rscaptures the PTY path before redirecting stdin to/dev/null, reopens${NEBULA_PANE_TTY:-/dev/tty}in the launch prelude, and unsets it with the pane color overrides.crates/nebula/tests/e2e_pty.rsextends the existing rc-autostart regression test to assert the CLI sees a TTY whose stdin device is not/dev/tty.Fixes #166.