Skip to content

[Upstream PR #101] Improve Linux stdin detection for nested wrapper process trees #86

@quangdang46

Description

@quangdang46

Mirrored from upstream 1jehuang/jcodePull Request #101 by @jrish11
Original state: open
Created: 2026-05-02T18:05:22Z · Updated: 2026-05-02T18:07:31Z
Diff: https://github.com/1jehuang/jcode/pull/101.diff
This issue is an auto-mirrored copy. Comments and edits here are local to quangdang46/jcode — do not expect them to propagate upstream.


Summary

  • make Linux stdin detection traverse full descendant process tree, not only direct children
  • keep existing stdin-pipe matching guard to avoid false positives
  • add regression test for nested wrappers ()

Why

Wrapper chains are common in agent/tool launch flows. The previous direct-child-only scan could miss the actual stdin reader when it lived at grandchild depth.

Notes

  • This is a targeted Linux reliability improvement.
  • I could not run local Rust tests in this environment because is unavailable here.

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions