Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#166 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

@SyedFahad7 已經在處理了。

開始於 2026年9月29日。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
68/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
python, typescript
領域
devtools, web-dev

研究方向

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: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
主要語言
TypeScript
星號
775
分支
90
平均合併
30 分鐘
30 天內合併 PR
8

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

browser-use/browsercode 的其他 Issue

查看 browser-use/browsercode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。