Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cdp/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ export class CDPClient {

// Copy cookies from an authenticated page (skip for pool pre-warming to avoid
// CDP session conflicts and unnecessary overhead on about:blank pages).
// Also skip when server mode sets skipCookieBridge globally.
// The global skipCookieBridge flag serves as a manual override escape hatch.
// Overall timeout prevents cascading hangs from unresponsive source tabs.
if (!skipCookieBridge && !getGlobalConfig().skipCookieBridge) {
const authPageTargetId = await this.findAuthenticatedPageTargetId(targetDomain);
Expand Down
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,8 @@ program
console.error(`[openchrome] Restart Chrome mode: enabled (will quit existing Chrome)`);
}

// Apply server mode config (skip cookie bridge)
if (options.serverMode) {
setGlobalConfig({ skipCookieBridge: true });
}
// Server mode: cookie bridge remains active for normal page creation.
// Pool pre-warming passes skipCookieBridge per-call to avoid CDP conflicts.

// Configure hybrid mode if enabled
const hybrid = options.hybrid || false;
Expand Down
Loading