From ec7244fa5b87b0982b3fad860ce1aab3b60302c1 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 28 Feb 2026 00:55:16 +0100 Subject: [PATCH] chore: version packages Co-Authored-By: Claude Opus 4.6 --- CHANGELOG.md | 6 ++++++ CLAUDE.md | 2 +- package.json | 2 +- src/web/server.ts | 13 ++++++++++--- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e47428..d414d7a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # codeman +## 0.2.6 + +### Patch Changes + +- Disable tunnel auto-start on boot; tunnel now only starts when user clicks the UI toggle + ## 0.2.5 ### Patch Changes diff --git a/CLAUDE.md b/CLAUDE.md index 2174a76f..a7a7a393 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -52,7 +52,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.5 (must match `package.json`) +**Version**: 0.2.6 (must match `package.json`) ## Project Overview diff --git a/package.json b/package.json index f94e763f..887423e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeman", - "version": "0.2.5", + "version": "0.2.6", "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", diff --git a/src/web/server.ts b/src/web/server.ts index d1276385..4ead077f 100644 --- a/src/web/server.ts +++ b/src/web/server.ts @@ -6165,10 +6165,17 @@ NOW: Generate the implementation plan for the task above. Think step by step.`; console.log('Image watcher disabled by user settings'); } - // Start Cloudflare tunnel if enabled in settings + // Tunnel only starts when user clicks the toggle in the UI — never on boot. + // Reset persisted tunnelEnabled so the UI toggle reflects actual state. if (await this.isTunnelEnabled()) { - this.tunnelManager.start(this.port, this.https); - console.log('Cloudflare tunnel starting on boot (enabled in settings)'); + const settingsPath = join(homedir(), '.codeman', 'settings.json'); + try { + const content = await fs.readFile(settingsPath, 'utf-8'); + const settings = JSON.parse(content); + settings.tunnelEnabled = false; + await fs.writeFile(settingsPath, JSON.stringify(settings, null, 2)); + } catch { /* ignore */ } + console.log('Cloudflare tunnel setting reset (tunnel only starts on explicit UI toggle)'); } // Start team watcher for agent team awareness (always on — lightweight polling)