[GH-ISSUE #719] [v3] Bug: Piping stdin to rec command fails (worked in v2) #974

Open
opened 2026-03-15 11:11:26 +03:00 by kerem · 2 comments
Owner

Originally created by @lunrenyi on GitHub (Dec 11, 2025).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/719

Pre-submission checks

  • I have searched existing issues and this bug has not been reported yet
  • This is a bug report for asciinema CLI (not player or server)

Bug Description

Piping commands to asciinema rec for automation worked perfectly in v2.4.0 but fails in v3.0.1.

Steps to Reproduce

printf "echo hhh\nexit\n" | asciinema rec demo.cast

Expected Behavior

  • v2.4.0: Records successfully and exits.
  • v3.0.1: Fails.The command hangs not capture the input
    Image

Operating System

macOS 24.6.0

asciinema CLI Version

3.0.1

Installation Method

Downloaded binary

Terminal Information

  • Shell: zsh 5.9 (arm64-apple-darwin24.0)

Additional Context

No response

Originally created by @lunrenyi on GitHub (Dec 11, 2025). Original GitHub issue: https://github.com/asciinema/asciinema/issues/719 ### Pre-submission checks - [x] I have searched existing issues and this bug has not been reported yet - [x] This is a bug report for asciinema CLI (not player or server) ### Bug Description Piping commands to `asciinema rec` for automation worked perfectly in **v2.4.0** but fails in **v3.0.1**. ### Steps to Reproduce ```bash printf "echo hhh\nexit\n" | asciinema rec demo.cast ``` ### Expected Behavior * **v2.4.0**: Records successfully and exits. * **v3.0.1**: Fails.The command hangs not capture the input <img width="463" height="265" alt="Image" src="https://github.com/user-attachments/assets/8190d786-bcf9-4454-a732-2a9451244619" /> ### Operating System macOS 24.6.0 ### asciinema CLI Version 3.0.1 ### Installation Method Downloaded binary ### Terminal Information - Shell: zsh 5.9 (arm64-apple-darwin24.0) ### Additional Context _No response_
Author
Owner

@lunrenyi commented on GitHub (Dec 11, 2025):

I'm wondering if there is a plan to support this non-interactive use case in v3, or if there is a recommended workaround for automating recordings?

Thanks!

<!-- gh-comment-id:3641599301 --> @lunrenyi commented on GitHub (Dec 11, 2025): I'm wondering if there is a plan to support this non-interactive use case in v3, or if there is a recommended workaround for automating recordings? Thanks!
Author
Owner

@ku1ik commented on GitHub (Mar 1, 2026):

I'm still trying to figure out whether it's worth adding this to v3. Btw, I'm planning to implement an RPC mechanism for controlling the recorder (sending input, setting markers, etc), which could potentially replace piping to stdin as a way of automation.

<!-- gh-comment-id:3980099633 --> @ku1ik commented on GitHub (Mar 1, 2026): I'm still trying to figure out whether it's worth adding this to v3. Btw, I'm planning to implement an RPC mechanism for controlling the recorder (sending input, setting markers, etc), which could potentially replace piping to stdin as a way of automation.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#974
No description provided.