Document BrowserCode vs OpenCode differences and resume session issues

Aperta
#165 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@SyedFahad7 ci sta già lavorando.

Dal 29/9/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
804
Fork
95
Merge medio
3h 13m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di browser-use/browsercode

Tutte le issue di browser-use/browsercode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.