Context
Browser-agent commands on Facebook timed out after 20 seconds. Root cause: the TM script had a hardcoded 20s per-command timeout, while FB pages take 60-120s per command due to heavy React rendering.
Root Causes Found & Fixed
- 20s TM script timeout: Increased to 60s default. Server now passes CLI timeout to TM script (was silently dropped before).
- 60s server cap: Increased to 300s.
- clickAny hitting validation errors: Two-pass matching — exact matches preferred over startsWith.
- React ignoring input events: Reset _valueTracker, use InputEvent with inputType, execCommand(‘insertText’).
- Condition dropdown selector: Use [aria-haspopup=”listbox”] + clickAny “Used – Good” (capital G).
Releases
- browser-agent v1.14.0: timeout fix + clickAny precision
- browser-agent v1.14.1-2: React InputEvent + _valueTracker
- browser-agent v1.15.0: execCommand insertText
- Extension v1.2.0: CDP trusted input via chrome.debugger
- fb-marketplace-poster: curl extraction, timeout increase, selector fixes
What Works Now on FB
Title, price, description, photo upload, condition dropdown, Next/Publish all work. Category autocomplete remains manual — FB uses anti-automation checks beyond isTrusted.
Listing Published
Lumos Kickstart Bike Helmet – Black, $40, Bicycle Accessories, Used – Good, 3 photos.
Full closeout: privateContext/deliverables/closeouts/2026-04-17-browser-agent-fb-timeout-fix.md