@andrewting19/oracle 0.10.0 → 0.10.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.
@@ -300,10 +300,12 @@ export async function serveRemote(options = {}) {
300
300
  });
301
301
  sharedChromeProcess = chrome;
302
302
  console.log(`Shared Chrome launched (pid ${chrome.pid}, port ${chrome.port}, headed + no-startup-window). Runs will use hidden CDP targets.`);
303
- // Create a persistent root CDP session. Hidden target lifetimes are tied to
304
- // the session that created them, so this must stay alive for the serve lifetime.
303
+ // Create a persistent root CDP session at the browser level (not page level).
304
+ // With --no-startup-window there are no page targets, so we connect to the
305
+ // browser endpoint directly. Hidden target lifetimes are tied to the session
306
+ // that created them, so this must stay alive for the serve lifetime.
305
307
  const CDP = (await import("chrome-remote-interface")).default;
306
- const rootSession = await CDP({ host: "127.0.0.1", port: chrome.port });
308
+ const rootSession = await CDP({ host: "127.0.0.1", port: chrome.port, target: "browser" });
307
309
  sharedRootSession = rootSession;
308
310
  // Sync ChatGPT cookies into the shared Chrome via a hidden target.
309
311
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrewting19/oracle",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "CLI wrapper around OpenAI Responses API with GPT-5.4 Pro, GPT-5.4, GPT-5.2, GPT-5.1, and GPT-5.1 Codex high reasoning modes.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/steipete/oracle#readme",