Skip to content

fix(browser): name web-bundle budgets and recover web deadlines - #6036

Merged
morluto merged 14 commits into
mainfrom
cursor/web-bundle-deadlines-2486
Oct 21, 2026
Merged

morluto merged 14 commits into
mainfrom
cursor/web-bundle-deadlines-2486

Conversation

@morluto

@morluto morluto commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Refs #5910 (parent #5808). Web-bundle heap, per-script, and total deadlines already existed and now name those phases. Capture, CDP command, source-map decode, and source-map fetch deadlines become validated settings at today's defaults. DevTools startup already accepted timeoutMs and now names it. Fixed discovery, cleanup grace, byte budgets, and Electron hook retention say there is no runtime override when the agent sees them.

Review follow-up: a short command_timeout_ms starts at the WebSocket handshake, after HTTP discovery. Browser-socket discovery keeps its own deadline. Scenario launch startup, connect-over-CDP, target lookup, environment commands, and storage CDP commands, including attached child replies, use the selected command deadline. A command that exceeds that deadline stays owned: cleanup closes a browser or context that appears afterward, and restores an environment mutation that completes afterward. Service-worker restoration stays on the fixed 5000 ms grace. Operations that do not accept command_timeout_ms do not name that setting. capture-browser-scenario recovery tells the caller to set command_timeout_ms in the scenario JSON; that command has no --command-timeout-ms option. When Chrome acknowledges delivery of a child command such as Page.enable and never replies, the stored failure is that timeout. The public error names the command, the selected deadline, and the scenario JSON recovery.

Runtime restoration calls beginCleanupGrace with the fixed 5000 ms grace before the first restoration command, so a shorter command_timeout_ms cannot return cleanup_failed for an otherwise successful observation. list_browser_targets no longer accepts command_timeout_ms. HTTP discovery and browser-socket discovery stay on the fixed 10-second deadline, and the socket closes without a later command. That listing deadline has no runtime override.

trace_web_source_location limitations name the effective decode_timeout_ms in both the result and Evidence: the selected value, or 20000 ms when omitted. An omitted deadline stays absent from parameters.

A browser-level Target.attachToTarget receives its own command_timeout_ms after the WebSocket handshake. Blocked service-worker attachment keeps the fixed discovery deadline on endpoint discovery; the following handshake and Target.attachToTarget each use command_timeout_ms.

The first blocked service-worker registration check, before discovery, has its own fixed 10000 ms deadline. command_timeout_ms does not apply to that check. Discovery, the handshake, and Target.attachToTarget stay on their separate deadlines.

Web-bundle memory exhaustion names the resource the runtime enforces. Node names the selected V8 old-space heap. Windows Bun names the process commit limit (max_heap_mb plus a 512 MiB reserve). Other Bun hosts say that raising max_heap_mb does not change the exit.

Browser-socket discovery timeout recovery names the 64 MiB protocol message budget. HTTP discovery timeout recovery still names the 8 MiB document budget.

When web-bundle result admission reaches zero, the failure names the operand that did it. Host heap pressure, while the fixed 8 MiB result budget still has room, names that host headroom and does not say the fixed allowance has no further room. Exhaustion of the 8 MiB allowance still names that fixed budget. A Windows Bun allocation before the process commit limit is reported as reached still names the configured limit and says it was not reached.

Merged origin/main (2aadcf7d0). The only conflict was src/cli/electronCommands.ts: the selected Electron page command timeout stays, and input failures keep main's issue diagnostics.

Problem and expected behavior

Timeout and budget failures read as unnamed hard caps, or named a generic server deadline. A caller could not tell a per-script web-bundle timeout from the total analysis deadline, or raise the capture, CDP command, source-map decode, or source-map fetch deadline without a code change.

analyze_web_bundle names max_heap_mb (default 1024 MiB, range 128..16384), analysis_timeout_ms (default 30000), and total_analysis_timeout_ms (default 300000). A per-script deadline above the effective total is rejected. Omitted values stay at today's defaults and stay absent from Evidence. On Bun, max_heap_mb is not a V8 old-space heap: Windows enforces a process commit limit plus a 512 MiB reserve, and other Bun hosts enforce no analyzer heap limit.

These settings are adjustable, default unchanged, integer range 1..2147483647:

  • capture_timeout_ms / --capture-timeout-ms — 30000
  • command_timeout_ms / --command-timeout-ms — 20000
  • decode_timeout_ms / --decode-timeout-ms — 20000
  • source_map_fetch_timeout_ms / --source-map-fetch-timeout-ms — 30000

DevToolsActivePort startup still accepts caller timeoutMs (default 60000) and the failure names that argument. HTTP CDP discovery is 10000 ms and 8 MiB. Browser-socket discovery is the same 10000 ms deadline and the 64 MiB protocol message budget. Cleanup grace (5000 ms), other protocol and capture byte budgets, source-map map/reply/codec-heap budgets, and the 16 MiB Electron hook retention stay fixed and say there is no runtime override. The blocked service-worker registration check before discovery is a fixed 10000 ms deadline with no runtime override.

Omitted scenario command_timeout_ms means 20000. That value bounds launch startup. Action timeout_ms, wait_for_timeout.duration_ms, and navigation stay separate. It does not bound the pre-discovery service-worker registration check.

list-browser-targets has no --command-timeout-ms option. Passing command_timeout_ms to list_browser_targets is rejected.

Change and scope

Recovery text lives with the owning deadline. CDP connections, runtime sessions, the capture decoder, and the source-map codec use the selected value. Schema descriptions are the CLI and MCP contract; this does not regenerate the MCP catalog.

Follow the contribution scope. Not applicable: no new provider, target execution, injection, mutation, or protection recovery.

Intentionally not included: MCP catalog work (#6005), provider limits (#6014), JavaScript analysis heap (#6022), Android/JADX/apktool (#6024), and E2E scripts.

Contract and boundary impact

  • Semantic owner and earliest changed stage: domain deadline schemas, then the browser, capture, and source-map owners that already enforced the timers.
  • Contribution scope fit and linked maintainer decision: ordinary fix inside existing browser and source-map boundaries. Maintainer scope decision not applicable.
  • CLI and MCP/tool-catalog contract: new optional fields and matching CLI flags. Omitted means today's default and applies on the next call. Generated MCP catalog is not committed. capture-browser-scenario takes scenario JSON only. list_browser_targets does not accept command_timeout_ms.
  • Provider, bridge, target-format, or platform compatibility: none. Numeric defaults are unchanged. Launch startup now uses command_timeout_ms (20000 when omitted) where it previously waited without that deadline.
  • Evidence, artifact, provenance, or reconstruction contract: a selected deadline is recorded in Evidence parameters; an omitted deadline stays absent. Target listing Evidence has no command_timeout_ms. Source-location limitations name the effective decode deadline in milliseconds. Web-bundle memory failures name the exhausted resource for the running runtime.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): no change to browser authority. Cleanup grace stays 5000 ms and is not raised or shortened by command_timeout_ms. A timed-out scenario command remains owned until it settles, so a late browser, context, session, or applied environment mutation is closed or restored.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs and skills/; edit authored instructions in .agents/skills/reverse-engineer-anything/ and never commit build outputs): none committed. Public browser, capture, source-location, scenario-contract, and web-runtime docs name the controls.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: src/domain/webDeadlineControls.test.ts covers rejection of a per-script deadline above the total, omitted defaults, the 1..2147483647 range, recovery text that omits command_timeout_ms when the operation does not accept it, and runtime-specific web-bundle exhaustion text (Node V8 heap, Windows Bun process commit limit, other Bun allocation, and a configured Windows limit that was not reported as reached). It also checks that host result capacity 0 with the fixed 8388608-byte budget still available names host pressure, and that a zero fixed allowance still names that fixed budget. Behavior tests apply non-default capture_timeout_ms, command_timeout_ms, decode_timeout_ms, and source_map_fetch_timeout_ms, including explicit-versus-omitted Evidence parameters, cleanup, discovery staying outside a short command deadline, handshake versus Page.getFrameTree labeling, the fixed 5000 ms cleanup grace, and scenario launch plus primary connect. This follow-up adds late launch close-before-profile-removal, late connect close without blocking the timeout, late environment restore, a stalled child Page.enable reply bounded by command_timeout_ms, and scenario recovery that does not mention --command-timeout-ms. The stalled child reply test asserts the public timeout: Page.enable, the selected 40 ms deadline, and the scenario JSON recovery. The session test connection implements beginCleanupGrace. Runtime cleanup with command_timeout_ms 250 keeps a hung Profiler.disable on the 5000 ms grace and still succeeds after that command completes; a stall names the fixed grace and does not name the 250 ms command deadline. list_browser_targets rejects command_timeout_ms and leaves it out of Evidence. WebSourceLocationService.test.ts checks that a selected 250 ms decode_timeout_ms is named as 250 ms decode_timeout_ms deadline in both the result and Evidence limitations, and that an omitted deadline names 20000 ms while staying absent from parameters. cdpTargetDeadlines delays the browser-socket handshake and still expects one full command_timeout_ms timer for Target.attachToTarget. The blocked service-worker test expects the 10000 ms discovery timer to be gone once attach is in flight, with one command_timeout_ms timer active. A stalled frame.evaluate during the first blocked registration check fails on its own 10000 ms deadline before any discovery request and without arming command_timeout_ms. Browser-socket discovery timeout text names the 67108864-byte protocol budget; HTTP discovery timeout text still names the 8388608-byte document budget. WebBundleAnalysisWorker.test.ts projects a heap-marker exit through the same runtime classifier. WebBundleAnalysisWorkerCapacity.test.ts refuses a zero host heap before launch and expects the host message, not the fixed-budget sentence.
  • Base reproduction or source-derived reasoning: source-derived from the limits review for [Bug] Limit errors omit adjustment controls and leave hard-coded ceilings unexplained #5910 and the Codex and Greptile threads on this PR. Source tests and Portable tests on c583cf8 failed in PlaywrightScenarioSession.test.ts because the mock connection lacked beginCleanupGrace. The child-timeout thread was source-derived: fail() stored every cause as protocol_error, so settle() hid the typed timeout. The source-location deadline text was source-derived: codecBudgetLimitation() hardcoded “20-second deadline” after the decoder already used the selected timeout. The attach threads were source-derived: one runtimeDeadline wrapped handshake and attach, and withCdpDiscoveryDeadline still enclosed the service-worker handshake and attach. Later threads were source-derived: web-bundle exit text always named the V8 old-space heap, browser-socket discovery timeout named the HTTP document budget, and the first blocked registration check no longer had a deadline. The latest threads were source-derived: a zero host-heap term still said the fixed result budget had no further room, and a Windows Bun allocation before the Job limit said no process limit was enforced.
  • User-visible CLI/MCP output (if applicable): timeout and budget failures name the control, the effective value, and whether a sibling budget can be raised. Scenario command recovery names command_timeout_ms in the capture JSON. A stalled child storage command surfaces that timeout directly. Target listing no longer advertises command_timeout_ms. Source-location limitations name the effective decode_timeout_ms in milliseconds. A stalled browser-level attach names Target.attachToTarget and the selected command deadline. Web-bundle memory failures name the exhausted resource for Node, Windows Bun, or other Bun. A Windows Bun allocation before the commit limit names that configured limit and says it was not reached. Browser-socket discovery timeouts name the 64 MiB protocol budget. A stalled pre-discovery service-worker check names its fixed 10000 ms deadline. Host result pressure names host heap headroom while the fixed result budget still has room.
  • Remaining proof gaps: no live Chrome, Electron, or codec process was launched in this change. Real-provider deadline behavior is unverified. The Windows Bun commit-limit and other-Bun allocation messages were checked as text for those host facts; this host is Node, so the worker projection run classified a heap-marker exit as the V8 heap. The host-capacity path was checked by forcing heap_size_limit to 0.

For evidence-bearing changes:

  • Observed, derived, and inferred claims remain distinguishable.
  • Artifact identity, source provenance, and failed attempts remain preserved.
  • Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.

Validation performed

  • npm run check:fast — passed (typecheck and lint) on the tree committed as e96ace766.
  • npm run test:focused -- src/domain/webDeadlineControls.test.ts src/browser/WebBundleAnalysisWorkerCapacity.test.ts src/browser/WebBundleAnalysisWorker.test.ts — passed, 28 tests, before the capacity-test type narrowing. After that narrowing, npm run check:fast passed again and npm run test:focused -- src/domain/webDeadlineControls.test.ts src/browser/WebBundleAnalysisWorkerCapacity.test.ts passed, 7 tests. The worker suite was not repeated after the type narrowing because that edit was only in the capacity test.
  • Earlier on 48aa28e2d, npm run check:fast passed. npm run test:focused -- src/domain/webDeadlineControls.test.ts src/browser/CdpEndpoint.test.ts src/browser/WebBundleAnalysisWorker.test.ts src/browser/PlaywrightScenarioSession.test.ts tests/boundary/browser/cdpTargetDeadlines.test.ts had 93 passed and 1 failed; the Windows Bun assertion was corrected, webDeadlineControls was rerun (5 passed), and CdpEndpoint was rerun (11 passed). The worker (21), scenario session (36), and cdpTargetDeadlines (22) results were from the run before that assertion-only edit.
  • Earlier on 97135d5b1, npm run check:fast passed. npm run test:focused -- tests/boundary/browser/cdpTargetDeadlines.test.ts src/browser/PlaywrightScenarioSession.test.ts passed, 57 tests. npm run test:focused -- tests/boundary/browser/cdpWebRuntime.test.ts tests/boundary/browser/cdpWebRuntimeTermination.test.ts tests/boundary/browser/cdpBrowserProvider.browserSocket.test.ts passed, 36 tests. Those three CDP suites were not repeated after this follow-up.
  • Earlier on 3d5a3fdd2, npm run check:fast passed and npm run test:focused -- src/application/WebSourceLocationService.test.ts passed, 20 tests. That source-location run was not repeated after later commits.
  • Earlier on 618ea8df1, npm run test:focused -- tests/boundary/browser/webDeadlineBehavior.test.ts src/domain/webDeadlineControls.test.ts passed with the then-current cdpTargetDeadlines count. That behavior file was not repeated after later commits.
  • Earlier on this branch, npm run test:focused -- src/browser/PlaywrightScenarioBrowser.test.ts src/browser/PlaywrightScenarioStorage.test.ts passed, 42 tests. That run was not repeated after the main merge.

Compatibility, safety, and release

  • Breaking changes or migration steps: none for omitted fields. An explicit total_analysis_timeout_ms below the effective per-script deadline (including the 30000 ms default) is now rejected. Raise analysis_timeout_ms only up to the total, or raise the total. Launch startup is now bounded by command_timeout_ms (20000 when omitted). list_browser_targets rejects command_timeout_ms; that field was not on main. Source-location limitation text now states the effective deadline in milliseconds (20000 ms decode_timeout_ms deadline when omitted) instead of a fixed “20-second deadline”. A browser-level attach can now use a full command_timeout_ms after a handshake that already consumed part of that same number of milliseconds. Bun web-bundle exhaustion no longer tells the caller the V8 old-space heap was exhausted. Browser-socket discovery timeouts name 64 MiB instead of 8 MiB. A stalled blocked service-worker registration check now fails after 10000 ms instead of waiting without a deadline. Host result pressure no longer says the fixed result budget has no further room. A Windows Bun allocation before the commit limit names that limit.
  • Real Hopper/Ghidra, browser, or OS coverage: not run. Browser and source-map coverage here is unit and boundary tests with fake transports and one owned Node decoder process for the capture deadline. The web-bundle heap-marker projection used an owned Node worker.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: deadlines do not add authority. Fixed byte budgets and the Electron hook retention limit are unchanged. The reported browser-socket budget now matches the 64 MiB limit the connection already enforced.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
Open in Web Open in Cursor 

Name the existing heap, per-script, and total web-bundle phases, and reject a per-script deadline above the total. Promote capture, CDP command, source-map decode, and source-map fetch deadlines at today's defaults. Name DevTools timeoutMs, and state that discovery, cleanup grace, byte budgets, and Electron hook retention have no runtime override.

Refs #5910

Co-authored-by: morluto <morluto@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-21T21:35:56.280187Z e96ace7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f5c93aacb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/domain/browserScenario.ts Resolved
@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

This PR names browser and web-analysis deadlines, exposes selected deadline settings, and keeps cleanup on separate fixed limits.

The latest changes:

  • Browser and scenario commands use named deadlines while keeping discovery and cleanup separate.
  • Capture decoding uses a named timeout that callers can adjust.
  • Source-map decoding and fetching use separate named deadlines.
  • Web-bundle limits name their deadlines and the memory resource in use.

No new actionable issues or security issues were found in the changes since the previous review. Tests were inspected, not run. Whether another PR supersedes this one could not be checked because GitHub access was unavailable.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Next script] --> B[Check fixed result allowance and host heap room]
  B --> C{Both have room?}
  C -->|Yes| D[Start worker and read source]
  C -->|No| E{Fixed allowance exhausted?}
  E -->|Yes| F[Report fixed result budget]
  E -->|No| G[Report host heap pressure]
  F --> H[Stop further scripts and preserve completed facts]
  G --> H
Loading

Reviews (9) · Last reviewed commit: "fix(browser): name the operand that stop..." · Reviewed by Greptile

Comment thread src/domain/browserScenario.ts Resolved
Comment thread src/browser/CdpConnection.ts Resolved
Comment thread src/domain/webDeadlineControls.test.ts Resolved
cursoragent and others added 2 commits October 21, 2026 16:11
…dlines-2486

Co-authored-by: morluto <morluto@users.noreply.github.com>
Keep HTTP and browser-socket discovery on the fixed discovery deadline so a
short command_timeout_ms starts at the handshake. Apply scenario
command_timeout_ms to launch startup and the primary connect session, and
keep service-worker restoration on the fixed 5000 ms grace. Omit
command_timeout_ms from recovery text when the operation does not accept it.

Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c583cf8bff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/browser/ScenarioCommandDeadline.ts Resolved
Comment thread src/browser/ScenarioCommandDeadline.ts Resolved
Comment thread src/browser/ScenarioCommandDeadline.ts Resolved
A timed-out scenario command stays owned so cleanup can close a late
browser or context and restore a mutation that lands after the deadline.
Child storage replies use that deadline, scenario recovery names
command_timeout_ms in the capture JSON, and the session test connection
implements beginCleanupGrace.

Co-authored-by: morluto <morluto@users.noreply.github.com>
A nested command such as Page.enable that is delivered but never answered
was stored as protocol_error, hiding the command name, selected deadline,
and recovery. Store the typed timeout and assert that public error.

Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d2bc278bd0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/browser/CdpBrowserProvider.ts Resolved
cursoragent and others added 3 commits October 21, 2026 20:17
…dlines-2486

# Conflicts:
#	src/cli/electronCommands.ts

Co-authored-by: morluto <morluto@users.noreply.github.com>
Switch runtime restoration to the cleanup grace before the first send so a
short command_timeout_ms cannot fail an otherwise successful observation.
Stop advertising command_timeout_ms on list_browser_targets, which never
bounds a post-discovery command.

Co-authored-by: morluto <morluto@users.noreply.github.com>
…anup

Drive restoration through the runtime fixture. A cleanup command that
outlives command_timeout_ms still succeeds, and a stalled restoration
names the fixed 5000 ms grace.

Co-authored-by: morluto <morluto@users.noreply.github.com>
codecBudgetLimitation reported a fixed 20-second deadline after a
caller selected decode_timeout_ms. Result and Evidence limitations
now name that effective millisecond deadline.

Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d5a3fdd28

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

A browser-level Target.attachToTarget no longer shares the WebSocket
handshake budget. Blocked service-worker attachment keeps discovery on
its fixed deadline and applies command_timeout_ms to the later handshake
and attach.

Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97135d5b16

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/domain/webBundleAnalysis.ts Resolved
Comment thread src/browser/CdpEndpoint.ts Resolved
cursoragent and others added 3 commits October 21, 2026 21:25
Bun ignores the V8 old-space flag. A Windows Job reports the process
commit limit, and other Bun hosts no longer suggest raising max_heap_mb.

Co-authored-by: morluto <morluto@users.noreply.github.com>
WebSocket discovery enforces the 64 MiB protocol budget. Timeout
recovery no longer advertises the 8 MiB HTTP document budget.

Co-authored-by: morluto <morluto@users.noreply.github.com>
The first registration check has its own fixed 10s deadline. Discovery,
handshake, and Target.attachToTarget stay on their separate deadlines.

Co-authored-by: morluto <morluto@users.noreply.github.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48aa28e2d9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/browser/WebBundleAnalysisWorker.ts Resolved
Comment thread src/domain/webBundleAnalysis.ts Resolved
Host heap pressure no longer claims the fixed result budget is exhausted.
A Windows Bun allocation before the commit limit still names that limit.

Co-authored-by: morluto <morluto@users.noreply.github.com>
@morluto
morluto merged commit 0155b89 into main Oct 21, 2026
17 of 19 checks passed
@morluto
morluto deleted the cursor/web-bundle-deadlines-2486 branch October 21, 2026 21:47
@morluto morluto mentioned this pull request Oct 25, 2026
3 tasks done
@morluto morluto added the bug Something isn't working label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants