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
@@ -50,7 +50,7 @@ When user says "COM":
4. **Sync CLAUDE.md version**: Update the `**Version**` line below to match the new version from `package.json`
5. **Commit and deploy**: `git add -A && git commit -m "chore: version packages" && git push && npm run build && systemctl --user restart codeman-web`
**Version**: 0.2.3 (must match `package.json`)
**Version**: 0.2.4 (must match `package.json`)
## Project Overview