fix: use --watch=always to prevent tailwindcss watcher from dying silently#1315
Merged
Merged
Conversation
…ently The tailwindcss CLI uses stdin closure as a signal to exit. When spawned via `bun run --parallel`, stdin is not connected to child processes, causing the watcher to exit with code 0 immediately after the first build. Using `--watch=always` keeps the watcher alive regardless of stdin state. Closes #1313 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
davidpoblador
pushed a commit
that referenced
this pull request
Feb 26, 2026
🤖 I have created a release *beep* *boop* --- ## [8.6.4](v8.6.3...v8.6.4) (2026-02-26) ### Bug Fixes * use --watch=always to prevent tailwindcss watcher from dying silently ([#1315](#1315)) ([3c65ce7](3c65ce7)) * use lint-po fork with gettext plural form support ([#1314](#1314)) ([10487a4](10487a4)), closes [#1312](#1312) ### Miscellaneous Chores * **deps:** update github artifact actions (major) ([#1316](#1316)) ([e4b2922](e4b2922)) ### Documentation Updates * add ad-hoc database operations guide for AI agents ([#1310](#1310)) ([6cbaff5](6cbaff5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--watch=alwaysflag in the template'sdev:cssscript to prevent the tailwindcsswatcher from exiting when stdin is closed by
bun run --parallelRoot Cause
The tailwindcss CLI uses stdin closure as a signal to exit cleanly. When spawned via
bun run --parallel, stdin is not connected to child processes (it's piped/closed ratherthan being a TTY). The watcher detects the closed stdin, interprets it as "parent is gone",
and exits with code 0 immediately after the first build. Meanwhile
bun build --watch(esbuild) doesn't use stdin as a lifecycle signal, so it survives.
The
--watch=alwaysflag was added to tailwindcss specifically for this class of problem(tailwindlabs/tailwindcss#8517, tailwindlabs/tailwindcss#9966).
Closes #1313
Test plan
bun devand verify the tailwindcss watcher stays aliveconfig.cssor a template file and confirm CSS is rebuilt automaticallyjust local-alland verify everything still worksps aux | grep tailwindconfirms the process is running🤖 Generated with Claude Code