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
+6
View File
@@ -1,5 +1,11 @@
# codeman
## 0.2.4
### Patch Changes
- Fix tunnel button not working: settings PUT was rejected by strict Zod validation when sending full settings blob; now sends only `{tunnelEnabled}`. Added polling fallback for tunnel status in case SSE events are missed.
## 0.2.3
### Patch Changes