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
- 星标
- 804
- 派生
- 95
- 平均合并
- 3 小时 13 分钟
- 30 天内合并 PR
- 6
环境准备
- 没有 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 于 128 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
browser-use/browsercode#132 ·
维护者通常 1 天内回复
-
docs(browser): clarify browser execute timeout scope可能已有人在做 @MagMueller 于 128 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
browser-use/browsercode#130 ·
维护者通常 1 天内回复
-
docs(browser): clarify page global scope可能已有人在做 @MagMueller 于 128 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
browser-use/browsercode#131 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
browser-use/browsercode#168 ·
维护者通常 1 天内回复
查看 browser-use/browsercode 的全部 Issue
相似的 Issue
-
bug data-types
难度 2/5 1-3 小时 新手友好度 88/100
ClickHouse/clickhouse-js#1293 ·
维护者通常 1 天内回复
-
area: middleware enhancement good first issue
难度 2/5 1-3 小时 新手友好度 68/100
-
agent/quality testing
难度 1/5 1 小时以内 新手友好度 95/100
维护者通常 1 天内回复
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
juspay/agent-distro#203 ·
维护者通常 1 天内回复