Document BrowserCode vs OpenCode differences and resume session issues

Đang mở
#165 2 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli, documentation

Hướng nghiên cứu

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.

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

Mô tả

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 opencode with bcode in 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

  1. Update session ID generation to use bcode_ prefix consistently
  2. Update CLI display to show correct bcode_ resume ID on exit
  3. Add Zen API support or document why it's not available
  4. 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
Ngôn ngữ chính
TypeScript
Star
804
Fork
95
Merge trung bình
3 giờ 13 phút
Pull request đã merge (30 ngày)
6

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.