Skip to content

fix(deps): bump @deco-cx/warp-node to 0.3.23 to fix link-tunnel HMR#3455

Merged
tlgimenes merged 1 commit into
mainfrom
tlgimenes/debug-nextjs-hmr-sandbox
May 22, 2026
Merged

fix(deps): bump @deco-cx/warp-node to 0.3.23 to fix link-tunnel HMR#3455
tlgimenes merged 1 commit into
mainfrom
tlgimenes/debug-nextjs-hmr-sandbox

Conversation

@tlgimenes

@tlgimenes tlgimenes commented May 22, 2026

Copy link
Copy Markdown
Contributor

What is this contribution about?

Bumps @deco-cx/warp-node from ^0.3.20^0.3.23 to fix dev-server HMR through the link daemon's Warp tunnel.

0.3.20 calls new WebSocket(new URL(reqPath, "http://127.0.0.1:<daemonPort>")) in handlers.client.ts without coercing the scheme. Node's undici silently rewrites http:ws:, so this went unnoticed in Node-hosted callers — but Bun keeps the scheme as-is and the handshake fails immediately. Since bunx decocms link always runs the link daemon under Bun, every WebSocket forwarded through the tunnel (Vite HMR, Next.js webpack-hmr/Turbopack HMR) died before the upgrade, so file edits in linked sandboxes never hot-reloaded. Upstream fix: deco-cx/warp-node#2, shipped in 0.3.22/0.3.23 (issue: deco-cx/warp-node#1).

How to Test

  1. bun install (no-op if you're already on this branch).
  2. Run a new mesh release containing this commit, then bunx decocms link@latest (clear bunx cache if needed so the new dep resolves).
  3. Open a Next.js (or Vite) preview through Studio, edit a .tsx file, and confirm the browser hot-reloads instead of requiring a full refresh.

Migration Notes

None. Pure dependency bump.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working (verified patched code present in node_modules/@deco-cx/warp-node@0.3.23/dist/handlers.client.js)
  • Documentation is updated (if needed) — n/a
  • No breaking changes

Summary by cubic

Bump @deco-cx/warp-node to 0.3.23 to restore HMR over the link tunnel when the link daemon runs under Bun. Fixes failed WebSocket upgrades that broke Vite/Next.js hot reload in Studio previews.

  • Bug Fixes
    • Forces ws: for tunneled WebSocket handshakes, so Bun no longer drops the connection.
    • Dependency-only change; no breaking changes or migration steps.

Written for commit fd7f0d0. Summary will update on new commits. Review in cubic

0.3.20 passes an `http:`-scheme URL to `new WebSocket(...)` when
forwarding upgrades in `handlers.client.ts`. Node's undici silently
rewrites it to `ws:`, but Bun keeps the scheme and the handshake
fails immediately — so every WebSocket through the link tunnel
(Vite HMR, Next.js webpack-hmr/Turbopack HMR) dies before connecting
when the link daemon runs under Bun, which it always does via
`bunx decocms link`.

Upstream fix: deco-cx/warp-node#2, released in 0.3.22/0.3.23.
Issue: deco-cx/warp-node#1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions

Copy link
Copy Markdown
Contributor

Release Options

Suggested: Patch (2.343.6) — based on fix: prefix

React with an emoji to override the release type:

Reaction Type Next Version
👍 Prerelease 2.343.6-alpha.1
🎉 Patch 2.343.6
❤️ Minor 2.344.0
🚀 Major 3.0.0

Current version: 2.343.5

Note: If multiple reactions exist, the smallest bump wins. If no reactions, the suggested bump is used (default: patch).

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@tlgimenes
tlgimenes merged commit 7ac9cbe into main May 22, 2026
16 checks passed
@tlgimenes
tlgimenes deleted the tlgimenes/debug-nextjs-hmr-sandbox branch May 22, 2026 21:03
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.

1 participant