@karlorz/codexhost-cli-linux-x64 0.21.0-0 → 0.21.0-1

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/README.md CHANGED
@@ -7,7 +7,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install -g @karlorz/codexhost-cli@0.21.0-0
10
+ npm install -g @karlorz/codexhost-cli@0.21.0-1
11
11
  ```
12
12
 
13
13
  Do not install this package directly. npm selects it through the optional dependencies of `@karlorz/codexhost-cli`.
@@ -1 +1 @@
1
- {"schemaVersion":1,"version":"0.21.0-0","distribution":"npm","target":"linux-x64"}
1
+ {"schemaVersion":1,"version":"0.21.0-1","distribution":"npm","target":"linux-x64"}
@@ -20648,7 +20648,7 @@ th[aria-sort] .console-usage-sort__mark {
20648
20648
  }
20649
20649
 
20650
20650
  // src/renderer-voice-implementation-revision.generated.ts
20651
- var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
20651
+ var VOICE_IMPLEMENTATION_REVISION = "496ea96312a2e7b6";
20652
20652
 
20653
20653
  // src/renderer-voice-profiles.ts
20654
20654
  var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
@@ -17327,7 +17327,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17327
17327
  }
17328
17328
 
17329
17329
  // src/renderer-voice-implementation-revision.generated.ts
17330
- var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
17330
+ var VOICE_IMPLEMENTATION_REVISION = "496ea96312a2e7b6";
17331
17331
 
17332
17332
  // src/renderer-voice-profiles.ts
17333
17333
  var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
@@ -20094,7 +20094,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20094
20094
  options.unavailable?.(request) ?? "Work voice is not qualified on this Desktop."
20095
20095
  );
20096
20096
  }
20097
- if (active) throw new Error("Voice gateway start is already pending");
20097
+ if (active) {
20098
+ active.binding?.dispose();
20099
+ active = void 0;
20100
+ }
20098
20101
  const attempt = {};
20099
20102
  active = attempt;
20100
20103
  const allowed = () => active === attempt && options.qualifies(args[0]);
@@ -22987,7 +22987,10 @@ ${bootstrap}${overlayBundle}` : void 0;
22987
22987
  ${bootstrap}${overlayBootstrapBundle}` : void 0;
22988
22988
  startupTrace("installing Renderer Session");
22989
22989
  if (!voiceHost && options.hostDataDirectory && !skipReason) {
22990
- voiceHost = await connectControllerVoiceHost(options.hostDataDirectory);
22990
+ for (let attempt = 0; attempt < 8 && !voiceHost; attempt += 1) {
22991
+ if (attempt > 0) await dependencies.sleep(250);
22992
+ voiceHost = await connectControllerVoiceHost(options.hostDataDirectory);
22993
+ }
22991
22994
  }
22992
22995
  const installed = await installProductionSession(
22993
22996
  {
@@ -451,7 +451,7 @@
451
451
  }
452
452
 
453
453
  // src/renderer-voice-implementation-revision.generated.ts
454
- var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
454
+ var VOICE_IMPLEMENTATION_REVISION = "496ea96312a2e7b6";
455
455
 
456
456
  // src/renderer-voice-profiles.ts
457
457
  var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
@@ -604,7 +604,7 @@
604
604
  }
605
605
 
606
606
  // src/renderer-voice-implementation-revision.generated.ts
607
- var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
607
+ var VOICE_IMPLEMENTATION_REVISION = "496ea96312a2e7b6";
608
608
 
609
609
  // src/renderer-voice-profiles.ts
610
610
  var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
@@ -2313,6 +2313,30 @@
2313
2313
  );
2314
2314
  return forms.length === 1 ? forms[0] : void 0;
2315
2315
  };
2316
+ const leftoverInstantConnectStarting = () => {
2317
+ if (!boundScope || !modules || typeof modules.initial.SPn !== "function") return false;
2318
+ try {
2319
+ const state = modules.initial.SPn(boundScope).getState();
2320
+ if (state.isVoiceModeActive !== true) return false;
2321
+ const connection = state.server?.connectionState;
2322
+ if (connection === "connected" || connection === "reconnecting" || connection === "signalReconnecting")
2323
+ return false;
2324
+ if (state.hasConnectedOnce === true || state.hasVoiceSessionStarted === true) return false;
2325
+ return true;
2326
+ } catch {
2327
+ return false;
2328
+ }
2329
+ };
2330
+ const endLeftoverInstantConnect = () => {
2331
+ starting = false;
2332
+ const end = doc.querySelector(
2333
+ 'button[aria-label="End Voice"], button[aria-label="End voice"]'
2334
+ );
2335
+ end?.click();
2336
+ };
2337
+ const releaseChatLaunchOwnership = () => {
2338
+ rememberVoiceProductExperience({ productExperience: "" }, target2);
2339
+ };
2316
2340
  const findBinding = () => {
2317
2341
  if (!modules || !nativeChatVoicePreferenceAllowsStart(target2)) return;
2318
2342
  const form = visibleComposer();
@@ -2531,7 +2555,16 @@
2531
2555
  try {
2532
2556
  if (hashed && !visibleComposer()) {
2533
2557
  selectDraft?.();
2558
+ if (starting) return;
2559
+ if (leftoverInstantConnectStarting()) {
2560
+ endLeftoverInstantConnect();
2561
+ releaseChatLaunchOwnership();
2562
+ release();
2563
+ handle.status = "pending";
2564
+ return;
2565
+ }
2534
2566
  if (handle.activeCall) return;
2567
+ releaseChatLaunchOwnership();
2535
2568
  release();
2536
2569
  handle.status = "pending";
2537
2570
  return;
@@ -2588,7 +2621,10 @@
2588
2621
  }
2589
2622
  if (!current) {
2590
2623
  showHeadline();
2591
- if (handle.activeCall) return;
2624
+ if (leftoverInstantConnectStarting()) {
2625
+ endLeftoverInstantConnect();
2626
+ } else if (handle.activeCall) return;
2627
+ releaseChatLaunchOwnership();
2592
2628
  if (showHashedComposerWave()) return;
2593
2629
  release();
2594
2630
  handle.status = "pending";
@@ -1,12 +1,12 @@
1
1
  {
2
- "implementationRevision": "0a2ee1b441686523",
2
+ "implementationRevision": "496ea96312a2e7b6",
3
3
  "reviewedEvidence": [
4
4
  {
5
5
  "profileKey": "chat:darwin:26.1106.51428",
6
6
  "platform": "darwin",
7
7
  "desktopVersion": "26.1106.51428",
8
8
  "path": "chat",
9
- "implementationRevision": "0a2ee1b441686523",
9
+ "implementationRevision": "496ea96312a2e7b6",
10
10
  "testedImplementationRevision": "5f84eb365e1b6736",
11
11
  "profileDigest": "257e2cb6360c49f7",
12
12
  "policy": "reviewed",
@@ -41,11 +41,11 @@
41
41
  "desktopVersion": "26.1106.51428",
42
42
  "desktopBuild": "26605",
43
43
  "asarDigest": "sha256:f50357bec2aa563f5a510ae7d1a343ca245040aae074fa79c8a22b6d39c7df0a",
44
- "implementationRevision": "0a2ee1b441686523",
44
+ "implementationRevision": "496ea96312a2e7b6",
45
45
  "testedImplementationRevision": "5f84eb365e1b6736",
46
- "reviewedAt": "2026-11-17",
46
+ "reviewedAt": "2026-11-19",
47
47
  "reference": "docs/operations/cpa-live-voice-desktop-hook.md#reviewed-macos-activation",
48
- "basis": "The preserved Chat graph, navigation, selection and speech path are unchanged on the already-supported Darwin profile; later adapter fallbacks select Windows isolated candidates.",
48
+ "basis": "The preserved Chat graph, navigation, selection and speech path remain on the already-supported Darwin profile. Leftover Instant Connect cleanup ends abandoned starts only and keeps established reconnecting Chat calls.",
49
49
  "nativeArchiveSha256": "3695c17edcab8d66c1e5f2faa03e07826a59a39bf78b369ec87854547d4843c1",
50
50
  "nativeIdentityDigestKind": "ElectronAsarIntegrity"
51
51
  }
@@ -55,7 +55,7 @@
55
55
  "platform": "darwin",
56
56
  "desktopVersion": "26.1106.51428",
57
57
  "path": "work-codex",
58
- "implementationRevision": "0a2ee1b441686523",
58
+ "implementationRevision": "496ea96312a2e7b6",
59
59
  "testedImplementationRevision": "f6f9c208ad38f922",
60
60
  "profileDigest": "585c26fefb43da96",
61
61
  "policy": "reviewed",
@@ -90,11 +90,11 @@
90
90
  "desktopVersion": "26.1106.51428",
91
91
  "desktopBuild": "26605",
92
92
  "asarDigest": "sha256:f50357bec2aa563f5a510ae7d1a343ca245040aae074fa79c8a22b6d39c7df0a",
93
- "implementationRevision": "0a2ee1b441686523",
93
+ "implementationRevision": "496ea96312a2e7b6",
94
94
  "testedImplementationRevision": "f6f9c208ad38f922",
95
- "reviewedAt": "2026-11-17",
95
+ "reviewedAt": "2026-11-19",
96
96
  "reference": "docs/operations/cpa-live-voice-desktop-hook.md#reviewed-macos-activation",
97
- "basis": "Retain the attended Codex gateway, selected-Harness, End and microphone-release result. The preserved Work gateway and capability path is unchanged on the supported Darwin profile; later changes add Windows isolated qualification.",
97
+ "basis": "Retain the attended Codex gateway, selected-Harness, End and microphone-release result. Work Instant Connect starts after leftover Chat launch ownership is released; later fallback branches add Windows isolated qualification.",
98
98
  "nativeArchiveSha256": "3695c17edcab8d66c1e5f2faa03e07826a59a39bf78b369ec87854547d4843c1",
99
99
  "nativeIdentityDigestKind": "ElectronAsarIntegrity"
100
100
  },
@@ -105,7 +105,7 @@
105
105
  "platform": "darwin",
106
106
  "desktopVersion": "26.1106.51428",
107
107
  "path": "work-grok",
108
- "implementationRevision": "0a2ee1b441686523",
108
+ "implementationRevision": "496ea96312a2e7b6",
109
109
  "testedImplementationRevision": "5f84eb365e1b6736",
110
110
  "profileDigest": "585c26fefb43da96",
111
111
  "policy": "reviewed",
@@ -140,11 +140,11 @@
140
140
  "desktopVersion": "26.1106.51428",
141
141
  "desktopBuild": "26605",
142
142
  "asarDigest": "sha256:f50357bec2aa563f5a510ae7d1a343ca245040aae074fa79c8a22b6d39c7df0a",
143
- "implementationRevision": "0a2ee1b441686523",
143
+ "implementationRevision": "496ea96312a2e7b6",
144
144
  "testedImplementationRevision": "5f84eb365e1b6736",
145
- "reviewedAt": "2026-11-17",
145
+ "reviewedAt": "2026-11-19",
146
146
  "reference": "docs/operations/cpa-live-voice-desktop-hook.md#reviewed-macos-activation",
147
- "basis": "Retain attended Grok selection, two-way speech, same-thread tool task, End and microphone release. The preserved Darwin Work capability, native existing-call attachment and gateway path are unchanged; later changes add Windows isolated qualification.",
147
+ "basis": "Retain attended Grok selection, two-way speech, same-thread tool task, End and microphone release. Work Instant Connect starts after leftover Chat launch ownership is released; later fallback branches add Windows isolated qualification.",
148
148
  "nativeArchiveSha256": "3695c17edcab8d66c1e5f2faa03e07826a59a39bf78b369ec87854547d4843c1",
149
149
  "nativeIdentityDigestKind": "ElectronAsarIntegrity"
150
150
  },
@@ -22405,7 +22405,7 @@ th[aria-sort] .console-usage-sort__mark {
22405
22405
  }
22406
22406
 
22407
22407
  // src/renderer-voice-implementation-revision.generated.ts
22408
- var VOICE_IMPLEMENTATION_REVISION = "0a2ee1b441686523";
22408
+ var VOICE_IMPLEMENTATION_REVISION = "496ea96312a2e7b6";
22409
22409
 
22410
22410
  // src/renderer-voice-profiles.ts
22411
22411
  var NATIVE_CHAT_VOICE_VERSION = "26.1027.61615";
package/bin/codexhost CHANGED
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karlorz/codexhost-cli-linux-x64",
3
- "version": "0.21.0-0",
3
+ "version": "0.21.0-1",
4
4
  "description": "Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.",
5
5
  "type": "module",
6
6
  "files": [