Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Configure OpenCode browser-harness to default to existing ULAA browser session with active visible tab

Đang mở
#166 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@SyedFahad7 đang làm issue này rồi.

Từ ngày 29/9/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, typescript
Lĩnh vực
devtools, web-dev

Hướng nghiên cứu

Start with ~/.config/opencode/skills/browser-harness/tool.py and inspect the existing BU_CDP_URL, current_tab(), switch_tab(), activate_tab(), new_tab(), and goto_url() flows. Run the browser-harness commands against a running ULAA instance at http://localhost:9222; done means the active tab is attached and visible by default, navigation and actions are visibly performed, and new_tab() activates its tab without an environment variable.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Configure the OpenCode browser-harness skill to strictly connect to the user's existing running ULAA browser (CDP at http://localhost:9222) and by default attach to/activate the currently active visible tab — matching BrowserCode's default behavior.

Current Behavior

  • browser-harness requires explicit BU_CDP_URL=http://localhost:9222 env var
  • new_tab() creates background tabs that aren't visually activated
  • switch_tab() attaches CDP but doesn't call Target.activateTarget by default
  • User must manually call activate_tab() to see actions

Desired Behavior (matching bcode)

  • Default to existing ULAA browser on port 9222 (no env var needed)
  • Automatically attach to current_tab() (the active visible tab)
  • Automatically call Target.activateTarget so actions are visible
  • new_tab() should activate the new tab by default
  • Zero-config: works out of the box with running ULAA

Technical Approach

  1. Modify ~/.config/opencode/skills/browser-harness/tool.py to inject BU_CDP_URL=http://localhost:9222 by default
  2. Update skill to auto-attach to active tab on first command
  3. Make activate_tab() the default for navigation actions
  4. Test end-to-end on running ULAA instance

Acceptance Criteria

  • No export BU_CDP_URL needed - works automatically
  • First command attaches to currently active ULAA tab
  • Navigation (goto_url) happens in the visible tab
  • Click/type actions are visibly performed in ULAA
  • new_tab() creates and activates a new visible tab
Ngôn ngữ chính
TypeScript
Star
775
Fork
90
Merge trung bình
30 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của browser-use/browsercode

Tất cả issue của browser-use/browsercode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.