#2541·OpenCLI

Browser Bridge v1.0.24 upload times out on visible file input (Page.fileChooserOpened)

Author: x-hansongCreated Sep 25, 2026Updated Sep 25, 2026

Bug description

With the latest published OpenCLI CLI v1.8.8 and Browser Bridge extension v1.0.24, opencli browser <session> upload times out even for a plain, visible <input type="file"> on a local page. The same timeout occurs with X's image input while preparing (not submitting) a post.

This is distinct from the old -32000 Not allowed error in #2108: the file-chooser interception path is present, but no Page.fileChooserOpened event arrives. The extension was updated from v1.0.22 to v1.0.24 using Chrome's Extensions → Update button, and opencli doctor confirms the connected extension is v1.0.24.

Minimal reproduction (no account or publishing required)

Create opencli-upload-test.html:

xml
<!doctype html><html><body><input type="file" id="upload" multiple></body></html>

Serve the directory with python3 -m http.server 8765 --bind 127.0.0.1, create any small local test file, then run:

bash
opencli browser uploadprobe open http://127.0.0.1:8765/opencli-upload-test.html --window background
opencli browser uploadprobe upload '#upload' /path/to/test.txt

Actual: Page.fileChooserOpened not received within 5s — the input may not have opened a file chooser (exit 1). The input is a normal, rendered HTML input, not hidden. I also reproduced the same error on https://x.com/home with input[data-testid="fileInput"] and a JPEG, without clicking Post.

Expected: browser upload attaches the file and emits a change event. An adapter calling page.setFileInput should likewise work without falling back to a large base64 transfer.

Environment and diagnosis

  • OpenCLI CLI/daemon 1.8.8, Node v24.15.0
  • Browser Bridge extension 1.0.24 (opencli doctor: connected v1.0.24)
  • Google Chrome 149.0.7827.155, Linux (X11 display)
  • Official opencli-extension-v1.0.24.zip contains the interception flow. In its built dist/background.js, setFileInputFiles() calls Runtime.evaluate with document.querySelector(...).click() but does not pass userGesture: true. It then waits 5 seconds for Page.fileChooserOpened. This may explain why even the visible local input doesn't open a chooser in this environment; it is a hypothesis, not yet proven by a patch test.

Related: #2108 (original Not allowed fix) and #2527 (open PR to reveal hidden inputs and click with userGesture: true). The visible-input reproduction above suggests the new PR's user-gesture part matters beyond hidden inputs.