Document BrowserCode vs OpenCode differences and resume session issues
維護者通常 1 天內回覆
@SyedFahad7 已經在處理了。
開始於 2026年9月29日。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
- 領域
- cli, documentation
研究方向
The issue names session ID generation, CLI exit output, session lookup, Zen API support, and README or comparison documentation, but no files or tests. Start by tracing where resume IDs are generated, displayed, and validated, then inspect the existing BrowserCode/OpenCode documentation. Done means the prefix behavior is consistent, resume IDs work during transition, and the Zen API status and differences are documented.
由索引模型根據 Issue 內容生成。
描述
Summary
This issue tracks the key differences between BrowserCode (bcode) and OpenCode, and documents specific bugs related to session resumption.
Key Differences (Known)
| Feature | BrowserCode (bcode) | OpenCode |
|---|---|---|
| Zen API | Not available | Available |
| Session Resume ID Format | Expected: bcode_... |
Shows: opencode_... |
| Browser Integration | Native via CDP/browser_execute | Not native |
Reported Bugs
1. Zen API Unavailable
- Expected: Zen API should work in BrowserCode
- Actual: Cannot use zen API on bcode browsercode
- Impact: Limits AI model options for users
2. Session Resume ID Mismatch
- Expected: Exit should show
bcode_<session-id>resume ID - Actual: Shows
opencode_<session-id>(inherited from OpenCode fork) - Result: Using the displayed ID fails with "invalid session ID"
- Workaround: User must manually replace
opencodewithbcodein the ID
3. Resume Session Failure
- Error: "invalid session ID" when using the displayed opencode-format ID
- Root Cause: Session storage/lookup uses bcode prefix but CLI displays opencode prefix
Proposed Fixes
- Update session ID generation to use
bcode_prefix consistently - Update CLI display to show correct
bcode_resume ID on exit - Add Zen API support or document why it's not available
- Add migration guide for OpenCode users switching to BrowserCode
Next Steps
- Fix session ID prefix in CLI output
- Fix session lookup to accept both prefixes during transition
- Document Zen API status
- Create comparison docs in README or separate file
- 主要語言
- 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 天內回覆