Skip to content

fix(text): support piped messages on Windows#106

Merged
XXPermanentXX merged 2 commits into
mainfrom
fix/windows-stdin
Jul 16, 2026
Merged

fix(text): support piped messages on Windows#106
XXPermanentXX merged 2 commits into
mainfrom
fix/windows-stdin

Conversation

@XXPermanentXX

Copy link
Copy Markdown
Collaborator

Summary

  • replace the Unix-specific /dev/stdin path with the cross-platform stdin file descriptor
  • reuse the shared file-or-stdin reader in bl text chat
  • prepare the 1.8.3 package and skill versions with matching English and Chinese changelog entries

Root cause

bl text chat --messages-file - translated the stdin sentinel to /dev/stdin. On Windows, Node treated that as a path on the current drive, so the command failed locally with ENOENT before sending an API request.

User impact

Piped JSON messages supplied through --messages-file - now work on Windows while preserving existing file-path behavior on all platforms.

Validation

  • vp check
  • pnpm --filter bailian-cli-commands exec vp test tests/e2e/text-chat.e2e.test.ts (4/4 passed)
  • local piped-input dry run
  • CI=true node tools/release/check.mjs (build, generated assets, pack, publint, and gitleaks passed)

Closes #103

- use the standard input file descriptor instead of /dev/stdin
- reuse the shared file-or-stdin reader in text chat
@XXPermanentXX XXPermanentXX marked this pull request as ready for review July 16, 2026 09:07
@XXPermanentXX XXPermanentXX merged commit 39f9256 into main Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] text chat --messages-file - treats stdin as <drive>:\dev\stdin on Windows

1 participant