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

Open
opened 2026-02-25 20:33:25 +03:00 by kerem · 1 comment
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!
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#360
No description provided.