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
Browser: the agent's tab in its own window behind the person's, to avoid background throttling under heavy load (#384's option 1a) #413
Under near-saturating CPU load, Chrome lowers a background tab's renderer priority. cua's page reads and evaluate on a tab the agent drives in the background then stall for 3–15 s or time out. Measured by linux171 for #384: 0/18 runs at 25–50% load per core, 3/4 at 75%, 9/10 at 100%. Input never stalls. The owner chose to document it as a limit (PR #412). This ticket keeps the one workaround found that works.
Option
Give the agent's tab its own Chrome window placed behind the person's, as that window's active tab, while a turn runs. Measured at full load: 0/4 stalls and 0 timeouts. The costs:
Chrome CPU rises about 2.5x while a turn runs (renderers 8–10% against 4–5%; Chrome 24–28% against 10–11%), because the page renders.
The window is findable in Mission Control, the Dock and Cmd-backtick.
A hidden tab in that window still stalls (3/4), so the agent's tab must be the window's active tab.
Unverified: whether macOS occlusion (another app fully covering the window) makes Chrome background the window anyway.
Other candidates measured and rejected in #384's report:
Silent audio works, but shows a speaker icon and injects an AudioContext into the page.
Screencast, CDP lifecycle and focus overrides, web locks and ForceForegroundPriorityForUrls don't help.
Work, if taken
Run the occlusion check on a real Mac first.
Possibly switch only under high load (e.g. load1 above about 70% of cores), so everyday use is unchanged.
Trigger
Reopen the design if heavy-load background driving becomes a real use (soak runs or parallel agents on one machine).
Activity