@bakapiano/ccsm 0.17.5 → 0.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +10 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakapiano/ccsm",
3
- "version": "0.17.5",
3
+ "version": "0.17.7",
4
4
  "description": "Claude Code Session Manager — Windows web UI to manage many concurrent claude sessions: live list, snapshot/restore, focus existing window, new session in an isolated workspace with repo clones",
5
5
  "license": "MIT",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -1380,10 +1380,16 @@ function openInBrowser(url) {
1380
1380
  console.log(`clis: ${cfg.clis.map((c) => c.id).join(', ')} (default: ${cfg.defaultCliId})`);
1381
1381
 
1382
1382
  // CCSM_NO_BROWSER=1 (set by the ccsm:// protocol launcher) suppresses
1383
- // the auto-open entirely. Otherwise try app-mode (chromeless Edge/Chrome
1384
- // window); if no such browser is installed, openInBrowser falls back to
1385
- // the OS default browser on its own.
1386
- const opened = process.env.CCSM_NO_BROWSER === '1'
1383
+ // the auto-open entirely. CCSM_FROM_UPGRADE=1 (set by upgrade-helper
1384
+ // when it respawns ccsm post-install) does the same: the user is
1385
+ // already in the helper UI which redirects to this fresh backend, so
1386
+ // a second app-mode window would just shadow the first. Otherwise try
1387
+ // app-mode (chromeless Edge/Chrome window); if no such browser is
1388
+ // installed, openInBrowser falls back to the OS default browser on
1389
+ // its own.
1390
+ const suppressBrowser = process.env.CCSM_NO_BROWSER === '1'
1391
+ || process.env.CCSM_FROM_UPGRADE === '1';
1392
+ const opened = suppressBrowser
1387
1393
  ? { kind: 'none', child: null }
1388
1394
  : openInBrowser(FRONTEND_URL);
1389
1395