You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Own browser host: CDP commands stall 4–10 s under load where the vendor's host passes them #384
At cpu:2 on the hosted macOS runner, cua's browser host stalls ordinary CDP commands (Runtime.evaluate, Input.dispatchMouseEvent) for 4–10 s, while the vendor's host passes the same commands in the same runs. The cause is unknown. Seen in #168's parity-browser-stress batches (PR #382's diagnosis, 2026-11-15).
This is a product finding, not a test one. On a loaded machine, cua's browser actions take seconds where the vendor's take milliseconds, and they can reach the host's 10 s command limit and fail.
Intent
cua's browser host is no slower than the vendor's under load. If it must be, the reason is known and stated.
Mechanism found (linux171, task 94, investigation only; 21 hosted runs at cpu:2; report on the Linux VM at ~/.local/share/cua-171/task94/task-94-report.md). The stalled time is inside Chrome. extension/background.js opens the agent tab with active:false, Chrome runs a hidden tab's renderer at background priority, and on the loaded hosted Mac (load average 85–210) it gets no CPU for seconds. Per-hop timing shows cua's service, the pipe, the relay, the host, native messaging and the extension's worker each take milliseconds even during stalls. Runtime.evaluate('1') went unanswered for 2 s while the browser-process-answered Page.getNavigationHistory took 0–27 ms, with the renderer at about 0% CPU. With --disable-renderer-backgrounding, 5 of 7 runs had zero CDP timeouts, against 0 of 14 without it. Correction to this ticket's framing: in the api suite both lanes run cua's own browser service, host and extension (api-lanes.mjs), and per-command p95 is the same on both. cua's lane averages more timeouts (20.6 against 14.4 per run) through a cascade after the shared stall: setup re-runs mid-case and dispose re-attaches the starved tab. Ruling 791: fix the cascade now (setup re-run, dispose never blocks), as its own PR. The anti-backgrounding flag goes in diagnostic stress runs only. Keeping the agent tab at foreground priority (its own unfocused window, or a held capture) waits for a measurement at realistic load (about the core count); if it reproduces there, it goes to the owner as a product decision.
PR #404 landed (cua 0.28.12, main a39d26f): a starved tab costs one timeout; setup's dispose never attaches. The stall itself (near-saturating load only: 0/18 at ≤50%, 3/4 at 75%, 9/10 at 100%) awaits the owner's call on documenting it vs the agent's own window (1a).
Activity
diag(#384): skew-free segments, late extension answers, cell timeline…
diag(#384): probe a tab whose command is unanswered after 1 s; join l…
diag(#384): stress gates with the anti-throttling flags, both orders
diag(#384): name the agent command each slow CDP command served
diag(#384): --disable-renderer-backgrounding alone, both orders
SSFSKIM commentedon Nov 17, 2026
Mechanism found (linux171, task 94, investigation only; 21 hosted runs at cpu:2; report on the Linux VM at ~/.local/share/cua-171/task94/task-94-report.md). The stalled time is inside Chrome. extension/background.js opens the agent tab with active:false, Chrome runs a hidden tab's renderer at background priority, and on the loaded hosted Mac (load average 85–210) it gets no CPU for seconds. Per-hop timing shows cua's service, the pipe, the relay, the host, native messaging and the extension's worker each take milliseconds even during stalls. Runtime.evaluate('1') went unanswered for 2 s while the browser-process-answered Page.getNavigationHistory took 0–27 ms, with the renderer at about 0% CPU. With --disable-renderer-backgrounding, 5 of 7 runs had zero CDP timeouts, against 0 of 14 without it. Correction to this ticket's framing: in the api suite both lanes run cua's own browser service, host and extension (api-lanes.mjs), and per-command p95 is the same on both. cua's lane averages more timeouts (20.6 against 14.4 per run) through a cascade after the shared stall: setup re-runs mid-case and dispose re-attaches the starved tab. Ruling 791: fix the cascade now (setup re-run, dispose never blocks), as its own PR. The anti-backgrounding flag goes in diagnostic stress runs only. Keeping the agent tab at foreground priority (its own unfocused window, or a held capture) waits for a measurement at realistic load (about the core count); if it reproduces there, it goes to the owner as a product decision.
diag(#384): realistic load (cpu:1) and no-load gates, stall episodes …
diag(#384): duty-cycled load threshold; foreground experiments (audio…
Browser service: a page clipboard override a removal left is removed …
diag(#384): window experiment opens the agent tab active in its own w…
Browser service: a bridge removal the page's script threw is a failur…
diag(#384): write the policy plist with tee and report each step's st…
Browser service: a starved tab costs one timeout, and setup's dispose…
SSFSKIM commentedon Nov 18, 2026
PR #404 landed (cua 0.28.12, main a39d26f): a starved tab costs one timeout; setup's dispose never attaches. The stall itself (near-saturating load only: 0/18 at ≤50%, 3/4 at 75%, 9/10 at 100%) awaits the owner's call on documenting it vs the agent's own window (1a).
Merge origin/main (a39d26f: #384 / #404, 0.28.12) into fix/405-secure…
SSFSKIM commentedon Nov 18, 2026
[board] in-progress: owner chose document-as-limit; docs PR
SSFSKIM commentedon Nov 18, 2026
[board] in-review: docs PR #412
README: a background tab can stall under near-saturating CPU load (#384…
SSFSKIM commentedon Nov 18, 2026
[board] done: Landed via PR #412 (cua 0.28.14): documented as a heavy-load limit, owner's call; option 1a kept as #413