[Vivaldi] CDP detaches immediately: navigate/observe time out on Vivaldi, same setup works on Chrome

Aperta
#452 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devtools

Direzione di ricerca

The payload names the chrome.debugger attach path in the extension and the daemon's CDP call handling, plus detectBrowserMeta as the place browser identity is read. Start by reproducing with Vivaldi and capturing daemon logs to see where the 'Detached while handling command' error originates. Done means navigate, observe and screenshot succeed on Vivaldi, or the browser-specific cause is documented with a clear next step. Related: #272 and #410.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

With Vivaldi connected, everything short of page automation works: bsk doctor is all green, bsk browsers lists the instance, session start returns an agent window, and tab list shows the user's tabs. But the first CDP call fails — navigate / observe time out (30–32s), and screenshot reports:

Could not establish background execution for tab <id>: Detached while handling command.

The exact same flow (same daemon, same CLI, same extension build, same machine) works end-to-end on real Chrome. So this looks like Vivaldi mishandling chrome.debugger attachments — same family as #272 (Yandex), except here it fails on the very first session, not after the first one.

We'd like to use BrowserSkill with Vivaldi too.

Environment

  • OS: CachyOS (Arch-based) Linux x86_64
  • Browser: Vivaldi 8.2.4133.87 (Flatpak com.vivaldi.Vivaldi), Chromium token 152.0.0.0 — the extension reports it as chrome 152.0.0.0
  • Working comparison: native Google Chrome 155 on the same machine (reported as chrome 155.0.0.0) — identical tasks succeed
  • bsk CLI 0.3.2, daemon protocol 1.3, extension 0.3.3 (Chrome Web Store), version_skew: false
  • Two browsers connected and labeled (Chrome, Vivaldi); targeted via --browser Vivaldi

Reproduction

bsk session start --browser Vivaldi --json     # ok: session_id + agent_window_id
bsk navigate https://example.com --session <id>
# error: operation timed out ... tool RPC timed out after 32s
bsk screenshot --session <id> --out x.png
# error: browser rejected the underlying CDP call
# details: Could not establish background execution for tab <id>: Detached while handling command.

tab list in the same session works and returns real tabs, so this is purely the debugger/CDP layer.

Notes

  • #272 was fixed by #410, but the fix is not in a released extension build yet (latest release is still cli-v0.3.2), so I could not verify whether it also covers Vivaldi.
  • Related suggestion from #272's discussion: detectBrowserMeta silently reports forks (Yandex, Vivaldi, …) as plain chrome, which makes reports like this self-misidentifying. A Vivaldi/YaBrowser probe plus a doctor hint for unsupported browsers would help.
  • Happy to run an instrumented build or provide daemon logs against this setup.
Lingua principale
TypeScript
Stelle
10.1k
Fork
732
Merge medio
2g 2h
PR unite (30g)
92

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Tencent/BrowserSkill

Tutte le issue di Tencent/BrowserSkill

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.