Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

🤖 fix: the Daytona status badge stays stopped after an editor open starts the sandbox

Aperta Adatta ai principianti
#7,254 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
backend, desktop

Direzione di ricerca

Inizia da src/browser/utils/openInEditor.ts:450 e segui il percorso di ammissione dell’editor insieme a useOpenTerminal e utils/terminal.ts, che aggiornano già lo stato di runtime dopo l’apertura di un terminale. Aggiungi l’aggiornamento dopo l’ammissione riuscita dell’editor Daytona, poi aggiungi il test descritto con lo stato stopped memorizzato nella cache e verifica che si aspetti un aggiornamento.

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

Descrizione

Follow-up from the Codex review of #7100 (thread: https://github.com/coder/xum/pull/7100#discussion_r4354242893, src/browser/utils/openInEditor.ts:450).

Problem

Opening a Daytona workspace in an editor (VS Code, Cursor, Zed) while its sandbox is stopped goes through recordEditorOpen, whose backend readiness starts the sandbox. The editor path then returns without refreshing RuntimeStatusStore. An editor open happens outside a turn, so no runtime-status event corrects the cache: the runtime badge keeps showing "Sandbox Stopped", and the Git and PR stores stay blocked by canRunPassiveRuntimeCommand until the window regains focus or metadata refreshes.

The terminal path already handles this: useOpenTerminal and utils/terminal.ts call getRuntimeStatusStoreInstance().refreshAfterTerminalOpen(workspaceId) after the terminal opens.

Proposed fix

After the editor admission succeeds for a Daytona workspace, call the same immediate status refresh the terminal path uses (rename it to fit both callers if needed). Add a test that opens an editor with a cached stopped status and expects one status refresh.

Why it is deferred

#7100 runs its review loop under a P0/P1-only rule; P2 findings get a tracked follow-up.

Lingua principale
TypeScript
Stelle
2.1k
Fork
140
Merge medio
4h 55m
PR unite (30g)
897

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 coder/xum

Tutte le issue di coder/xum

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.