← Back to Dashboard
#7934 build command is run twice on wrangler dev
Recommendation:KEEP OPEN
Difficulty:easy
Reasoning:
Confirmed bug; PR #7423 fix was accidentally reverted
Suggested Action:
Review and fix PR #7423
Analysis Report
Issue Review: cloudflare/workers-sdk#7934
Summary
Custom build command runs twice when first starting wrangler dev.
Findings
- Created: 2025-01-28
- Updated: 2025-11-26
- Version: wrangler 3.103.2 → wrangler 4.61.0
- Component: wrangler (dev)
- Labels: bug
- Comments: 7
Key Evidence
- Reproduction repo: https://github.com/pydantic/pydantic.run
- Build runs once initially, then immediately detects change and rebuilds
- Message shows: "The file src/frontend/src,src/cf_worker/src changed, restarting build..."
- PR #7423 was opened to fix this but the "Fix logging" commit reverted the actual fix
- User @treeder (Nov 2025) reports issue still exists and "feels like a 10 minute fix"
- Affects developers with long build times (e.g., Rust/WASM builds fail due to concurrent wasm-opt)
Recommendation
Status: KEEP OPEN
Reasoning: This is a confirmed bug affecting developer experience. PR #7423 exists but its fix was accidentally reverted. Recent comments confirm the issue persists in current versions.
Action: Review PR #7423 and properly implement the fix that was reverted in the "Fix logging" commit.
Suggested Comment
N/A - Issue has PR #7423 that needs review.
Notes & Feedback (0)
No notes yet.