fix: tunnel button stuck on "Connecting..." due to settings validation

Root cause: toggleTunnelFromWelcome() sent the entire settings object
back to PUT /api/settings, but the Zod schema uses .strict() which
rejects unknown fields (lastUsedCase, localEchoEnabled, etc.). The PUT
silently failed, so the tunnel never started.

Fix: send only {tunnelEnabled: true/false} instead of the full blob.
Also added polling fallback for tunnel status and server-side re-broadcast
when tunnel is already running.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-02-27 16:45:05 +01:00
co-authored by Claude Opus 4.6
parent 1b0a540919
commit 93ebe3f07e
4 changed files with 39 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "codeman",
"version": "0.2.3",
"version": "0.2.4",
"description": "The missing control plane for AI coding agents - run 20 autonomous agents with real-time monitoring and session persistence",
"type": "module",
"main": "dist/index.js",