# NousResearch/hermes-agent · stdin/fd 0 handling bugs in session kernel cells

## Open now

- 1 issue, 3 PRs open on GitHub.
- #123559: \[Bug\]: execute_code session kernel: input() or a stdin-reading subprocess hangs until timeout, and a background reader swallows the next cell
- PR #123560: fix(execute_code): give session-kernel cells EOF on stdin, not the request pipe
- PR #123593: fix(execute_code): detach the session kernel's fd 0 from cell subprocesses
- PR #136426: execute_code session-kernel cells read EOF from stdin instead of the kernel's request pipe (#123559, salvage #123560)

These items address bugs where session-kernel cell subprocesses incorrectly inherit or share stdin, causing input() calls and stdin-reading subprocesses to hang or interfere with subsequent cells. The fixes involve giving cells EOF on stdin and detaching fd 0 from cell subprocesses.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 3 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #123559: \[Bug\]: execute_code session kernel: input() or a stdin-reading subprocess hangs until timeout, and a background reader swallows the next cell

## Prior & competing PRs

- **#123560: fix(execute_code): give session-kernel cells EOF on stdin, not the request pipe**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#136426`, `#136426`
  - files: `tests/tools/test_code_kernel.py`, `tools/code_kernel.py`
- **#123593: fix(execute_code): detach the session kernel's fd 0 from cell subprocesses**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#123560`
  - files: `tests/tools/test_code_kernel.py`, `tools/code_kernel.py`
- **#136426: execute_code session-kernel cells read EOF from stdin instead of the kernel's request pipe (#123559, salvage #123560)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#123560`
  - files: `tests/tools/test_code_kernel.py`, `tools/code_kernel.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
