Skip to content

v1.3.2 - Bridge liveness and diagnostics

Choose a tag to compare

@LouSputthole LouSputthole released this 02 Jun 15:41
· 117 commits to main since this release

Bridge liveness & diagnostics. Fixes the most confusing failure mode: the bridge reporting connected (0 ms ping) while every actual command times out after 30 seconds.

Fixed

  • "Connected" now means actually alive. status.json was written once at startup and never updated or cleared — so once the bridge had run a single time, it reported connected forever, even with s&box closed, crashed, or its frame loop stalled (the 0 ms "ping" was just a file check, not a real round-trip). It's now a heartbeat: the addon refreshes it ~once per second from the editor frame loop, and the MCP server treats a heartbeat older than 5 s as disconnected.

Added

  • Timeouts now name the side that broke — "the editor never picked up the request (not running, addon didn't load, or wrong IPC dir — server is using <dir>)" vs "the editor received it but never responded (frame loop stalled / handler errored)" — with a pointer to the [SboxBridge] editor-console logs.
  • SBOX_BRIDGE_IPC_DIR to override the IPC directory on the MCP-server side. The most common silent 30 s hang is the Node and C# halves resolving different temp folders (os.tmpdir() reads TEMP first; Path.GetTempPath() reads TMP first). The addon now logs and records the exact directory it's watching. See INSTALL.md → "Fixing a connected-but-times-out hang."
  • get_bridge_status is genuinely diagnostic now — reports the IPC directory, heartbeat age, and the result of a real round-trip, so "heartbeat alive but the editor isn't draining requests" is distinguishable from "fully working" and "not connected."
  • Bridge version surfaced in status.json and the Editor → Claude Bridge → Status dialog, so an addon/MCP-server mismatch is visible at a glance.
  • npm test (Node's built-in test runner, zero new deps) covering heartbeat staleness, the timeout diagnostics, and the IPC-dir override.

Changed

  • Removed the misleading WebSocket / port 29015 references from code and docs. There is no socket — the transport is file-based IPC; SBOX_BRIDGE_HOST / SBOX_BRIDGE_PORT are cosmetic.

Upgrading

Update both halves: the addon (s&box asset library) and the MCP server (Claude Code plugin / sbox-mcp-server). No breaking changes — an older addon with the newer server still works; it just won't gain stale-heartbeat detection until the addon is updated too.