Configure OpenCode browser-harness to default to existing ULAA browser session with active visible tab
維護者通常 1 天內回覆
@SyedFahad7 已經在處理了。
開始於 2026年9月29日。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 68/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- python, typescript
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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:9222env var new_tab()creates background tabs that aren't visually activatedswitch_tab()attaches CDP but doesn't callTarget.activateTargetby 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.activateTargetso actions are visible new_tab()should activate the new tab by default- Zero-config: works out of the box with running ULAA
Technical Approach
- Modify
~/.config/opencode/skills/browser-harness/tool.pyto injectBU_CDP_URL=http://localhost:9222by default - Update skill to auto-attach to active tab on first command
- Make
activate_tab()the default for navigation actions - Test end-to-end on running ULAA instance
Acceptance Criteria
- No
export BU_CDP_URLneeded - 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
- 主要語言
- TypeScript
- 星號
- 775
- 分支
- 90
- 平均合併
- 30 分鐘
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
browser-use/browsercode 的其他 Issue
-
Session.invalidate() leaves in-flight CDP calls pending可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
browser-use/browsercode#154 ·
維護者通常 1 天內回覆
-
docs(browser): clarify snippet persistence可能已有人在做 @MagMueller 於 84 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 72/100
browser-use/browsercode#132 ·
維護者通常 1 天內回覆
-
docs(browser): clarify browser execute timeout scope可能已有人在做 @MagMueller 於 84 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
browser-use/browsercode#130 ·
維護者通常 1 天內回覆
-
docs(browser): clarify page global scope可能已有人在做 @MagMueller 於 84 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
browser-use/browsercode#131 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
browser-use/browsercode#168 ·
維護者通常 1 天內回覆
查看 browser-use/browsercode 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 66/100
db-ux-design-system/core-web#8613 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
bug:new
難度 1/5 1 小時以內 新手友好度 78/100
callstackincubator/simlock#934 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 68/100
gchq/LD-Explorer#286 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆