#2533·OpenCLI

Intermittent 'Navigation rejected' (<1s) on adapter commands while doctor and raw navigation are healthy

Author: pp-craft610Created Sep 20, 2026Updated Sep 20, 2026

Environment

  • opencli 1.8.7 (npm global), daemon v1.8.7 (port 19825), browser extension v1.0.24
  • Windows 11 (build 26200), node v24.18.0, Git Bash
  • Occurred on at least two builds: first recorded while running the previous release (pre-1.8.7), still present on 1.8.7

Symptom

Adapter commands that require page navigation fail immediately (exit 1, duration < 1s), at the pre-navigation stage:

  • opencli bilibili search '<query>' → error.code=COMMAND_EXEC, message: Pre-navigation to https://www.bilibili.com failed: Navigation rejected.
  • opencli xiaohongshu note <signed-url> -f md → error.code=UNKNOWN, message: Navigation rejected.

Help text points to the browser extension, but the extension is NOT the problem (see below).

Pattern: intermittent, not deterministic

The same command alternates between success and failure within seconds:

  • opencli bilibili search '<query>' → rejected; retried ~4s later → succeeds with full results
  • opencli xiaohongshu note <url> -f md → succeeds; 3s later → rejected; then succeeds again
  • Bursts observed: 6 consecutive failures over ~10 minutes on one day (self-recovered), recurred days later

Discrimination evidence (rules out site blocking / network / extension connectivity)

  1. opencli doctor reports all green (daemon running, extension connected, connectivity 0.0s) while the rejection still reproduces
  2. Raw navigation opencli browser <session> open <url> to the same domains (bilibili.com, xiaohongshu note URLs, example.com) always succeeds, even immediately after a rejection
  3. Therefore: bridge connectivity OK, browser navigation OK, target sites reachable → the failure is inside the adapter command's session acquisition step
  4. Failures frequently come immediately after a previous opencli invocation — suspected teardown/acquire race on the session/tab in the daemon

Workaround observed

Spaced retry (~3-4s) succeeds roughly half the time; failures are fail-loud (no bad data returned). Creating/using a fresh browser session also correlates with recovery.

Request

Please investigate the daemon's session/tab acquisition path for a possible teardown-acquire race that intermittently rejects pre-navigation. Happy to provide --trace=retain-on-failure artifacts if useful.