@youdie006/prodex 0.40.33 → 0.40.34

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.
@@ -2477,6 +2477,30 @@ export function menuItemRectExpression(label) {
2477
2477
  return { ...point, role: it.getAttribute("role"), haspopup: it.getAttribute("aria-haspopup") };
2478
2478
  })()`;
2479
2479
  }
2480
+ /**
2481
+ * The picker's effort view covers its model rows: measured 2026-10-19, the
2482
+ * menu opens on a "Pro ›" label over the slider with GPT-6 and GPT-5.6 Sol
2483
+ * underneath, so a click on a model row hit the slider and was refused.
2484
+ * Clicking the label swaps in the model list. Reports whether that is needed
2485
+ * and where the label is; a row that can already be clicked needs nothing.
2486
+ */
2487
+ export function pickerModelViewToggleExpression(label) {
2488
+ return `(() => {${CLICK_POINT_SNIPPET}
2489
+ const m = document.querySelector('[data-testid="composer-intelligence-picker-content"],[role="menu"]:has([role="slider"])');
2490
+ if (!m) return { needed: false };
2491
+ const items = [...m.querySelectorAll('[role="menuitemradio"],[role="menuitem"]')];
2492
+ const row = items.filter((item) => item.getAttribute("role") === "menuitemradio").find(${menuLabelMatchPredicate(label)});
2493
+ if (!row) return { needed: false };
2494
+ const r = row.getBoundingClientRect();
2495
+ const hit = document.elementFromPoint(r.x + r.width / 2, r.y + r.height / 2);
2496
+ if (hit && (hit === row || row.contains(hit))) return { needed: false };
2497
+ const toggle = items.find((item) =>
2498
+ item.getAttribute("role") === "menuitem" && item.getClientRects().length > 0 &&
2499
+ !item.querySelector('[role="slider"]') && (item.innerText || "").trim().length > 0);
2500
+ if (!toggle) return { needed: true, ok: false, reason: "the model rows are covered and no view label was found" };
2501
+ return { needed: true, ...clickPoint(toggle) };
2502
+ })()`;
2503
+ }
2480
2504
  export function submenuItemRectExpression(label) {
2481
2505
  return `(() => {${CLICK_POINT_SNIPPET}
2482
2506
  const items = [...document.querySelectorAll('[role="menuitemradio"],[role="menuitem"]')];
@@ -2860,6 +2884,11 @@ async function selectPickerModel(cdp, requested, warnings = []) {
2860
2884
  }
2861
2885
  throw new Error(hit.reason ?? `ChatGPT's model picker has no "${requested}" model.`);
2862
2886
  }
2887
+ const view = await cdp.evaluate(pickerModelViewToggleExpression(requested));
2888
+ if (view.needed && view.ok && view.x !== undefined && view.y !== undefined) {
2889
+ await verifiedClickAt(cdp, view.x, view.y, "the picker's model list");
2890
+ await sleep(400);
2891
+ }
2863
2892
  await verifiedClickWithRetry(cdp, () => cdp.evaluate(menuItemRectExpression(requested)), requested);
2864
2893
  }
2865
2894
  /**
package/docs/releasing.md CHANGED
@@ -16,6 +16,37 @@ Release target: `v0.40.13` on `main`. The GitHub Release records the resolved co
16
16
 
17
17
  The release adds a guarded, opt-in transition and more accurate blocker reporting. It does not claim that headless Pro consultation is verified on either deployment target or that authentication can be retained indefinitely.
18
18
 
19
+ ## 0.40.33 Release Record
20
+
21
+ Release commit `0497134` on `main` (cut after PR #27, merge `6083c6a`); tag `v0.40.33`.
22
+
23
+ **Publishing**
24
+ - `publish.yml` run 39181118204 passed all six platforms on the first attempt, then npm publish with SLSA v1 provenance and the GitHub Release (2026-10-19 00:51 UTC).
25
+ - `npm run release:verify` passed on the release commit after a build.
26
+
27
+ **Installed**
28
+ - WSL, M3, Mac mini: `prodex --version` reports 0.40.33. Running services were not restarted: 10 stdio MCP servers on WSL and 2 on M3 keep older code until their clients reconnect. The Mac mini had none running.
29
+ - The maintainer watchdog checkout was pulled to `0497134` and rebuilt.
30
+
31
+ **Verified live**
32
+ - With 0.40.33 installed, `login --virtual-display` on the affected machine printed the taken-port message for 9333 and left no Chrome running on the profile.
33
+
34
+ ## Browser Incident 2026-10-18: Windows reserved port 9333
35
+
36
+ **What happened**
37
+ - The WSL machine restarted at 2026-10-18 18:08 KST. From 19:17 KST the hourly canary logged `skipped - the browser is not available`.
38
+ - The watchdog's first revive (19:17 KST) started Chrome, which loaded ChatGPT logged in but never opened its DevTools port; login reported "did not expose a reachable DevTools endpoint ... check the display, profile lock". Later revives refused the leftover Chrome as wedged (`ui_watchdog_revive=failed ... still running ... stopped answering`).
39
+ - The browser container was unaffected (port 9333 is inside its own network namespace).
40
+
41
+ **Cause**
42
+ - Windows (Hyper-V/WinNAT) reserved TCP ports 9240-9339 at boot (`netsh interface ipv4 show excludedportrange protocol=tcp`). The machine runs WSL with `networkingMode=mirrored`, so the reservation applies inside WSL, and Chrome logged `bind() failed: Address already in use` and `Cannot start http server for devtools`.
43
+ - The Windows TCP dynamic port range starts at 1024 (13,977 ports) instead of the default 49152, which lets these reservations land on 9333.
44
+
45
+ **Recovery and fixes**
46
+ - The leftover Chrome was ended with `prodex pro browser reset --confirm`. PR #27 (0.40.33) makes login close a browser whose control port never appears and name a taken port.
47
+ - Not changed: the Windows port settings. Bringing the host browser back needs an administrator on Windows: `net stop winnat` then `net start winnat` for now, and `netsh int ipv4 set dynamicport tcp start=49152 num=16384` (and `udp`) plus a restart to keep it from recurring. As of this record the range was still reserved and the host browser was down.
48
+ - Resolved 2026-10-19 11:51 KST: the maintainer ran the elevated script (`netsh int ipv4 set dynamicport tcp|udp start=49152 num=16384`, then `net stop winnat` / `net start winnat`). The 9240-9339 reservation was gone and 9333 could be bound. `login --virtual-display` was ready in 2 s; the canary reported the new ChatGPT build `bfc3a09a` as changed; the smoke answered `PRODEX_PRO_SMOKE_OK`, and a 500-line `--file` send on 0.40.33 answered correctly with the request verified.
49
+
19
50
  ## 0.40.32 Release Record
20
51
 
21
52
  Release commit `e0e260e` on `main` (cut after PR #26, merge `f57f413`); tag `v0.40.32`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youdie006/prodex",
3
- "version": "0.40.33",
3
+ "version": "0.40.34",
4
4
  "description": "Local receipt bus for coordinating Codex execution with ChatGPT Pro/Projects consultation.",
5
5
  "author": "youdie006",
6
6
  "license": "MIT",