Skip to content

Wait for pending watch work on delegated builds - #358

Merged
bcomnes merged 2 commits into
masterfrom
feat/opt-in-watch-rebuild
Nov 23, 2026
Merged

bcomnes merged 2 commits into
masterfrom
feat/opt-in-watch-rebuild

Conversation

@bcomnes

@bcomnes bcomnes commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #355 and #356. A second terminal or an agent can run domstack build without knowing that a watcher already owns the destination. The CLI now waits for the active build and drains the pending source events through the normal watch planner instead of forcing a full rebuild. An idle, healthy watcher performs no work, and an unresolved build failure is reported to the CLI.

There is no new flag. --replace-watch still stops the matching watcher and runs a fresh one-shot build. Static copies continue independently.

Validation: 148 focused CLI, watch control, and lifecycle tests passed, along with TypeScript, targeted ESLint, and git diff --check.

@coveralls

coveralls commented Nov 23, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 45210793095

Warning

No base build found for commit 1c767ce on master.
Coverage changes can't be calculated without a base build.
If a base build is processing, this comment will update automatically when it completes.

Coverage: 96.415%

Details

  • Patch coverage: 27 of 27 lines across 4 files are fully covered (100%).

Uncovered Changes

No uncovered changes found.

Coverage Regressions

Requires a base build to compare against. How to fix this →


Coverage Stats

Coverage Status
Relevant Lines: 13033
Covered Lines: 12733
Line Coverage: 97.7%
Relevant Branches: 4403
Covered Branches: 4078
Branch Coverage: 92.62%
Branches in Coverage %: Yes
Coverage Strength: 1066.7 hits per line

💛 - Coveralls

@bcomnes bcomnes changed the title Make full watch rebuilds opt-in from the CLI Wait for pending watch work on delegated builds Nov 23, 2026
@bcomnes
bcomnes merged commit 6ac80be into master Nov 23, 2026
7 checks passed
@bcomnes
bcomnes deleted the feat/opt-in-watch-rebuild branch November 23, 2026 19:20
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.

2 participants