cicy-desktop 2.1.126 → 2.1.129

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-desktop",
3
- "version": "2.1.126",
3
+ "version": "2.1.129",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -133,6 +133,10 @@ async function startLogin({ onResult } = {}) {
133
133
  });
134
134
  const url = `${LOGIN_BASE}?${params.toString()}`;
135
135
  log.info(`[auth-loopback] listening :${port}, opening ${url}`);
136
+ // Best-effort auto-open. On some setups (fresh Windows user with no default
137
+ // browser, locked-down shell) openExternal silently fails and the user is
138
+ // left stuck "等回调" with no recourse — so we ALSO return the url to the
139
+ // renderer (below) to show a manual "open / copy this link" fallback.
136
140
  shell.openExternal(url).catch((e) => log.warn(`[auth-loopback] openExternal failed: ${e.message}`));
137
141
 
138
142
  _timeoutHandle = setTimeout(() => {
@@ -140,7 +144,7 @@ async function startLogin({ onResult } = {}) {
140
144
  shutdown("timeout");
141
145
  }, LOGIN_TIMEOUT_MS);
142
146
 
143
- resolve({ port, state: expectedState });
147
+ resolve({ port, state: expectedState, url });
144
148
  });
145
149
  });
146
150
  }