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

🤖 fix: renaming a Daytona workspace fails while its sandbox is stopped

Aperta
#7,250 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start with WorkspaceService.rename() and src/node/runtime/DaytonaSSHRuntime.ts, especially the ensureReady() and renameWorkspace() paths described in the issue. Read how terminals and turns ensure the runtime is ready, then add the runtime test for a stopped sandbox. Done means the sandbox starts once and the workspace rename succeeds.

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_r4353981200, src/node/runtime/DaytonaSSHRuntime.ts:510).

Problem

Renaming a Daytona workspace whose sandbox auto-stopped (30 min idle) or was archived by Daytona fails. WorkspaceService.rename() calls the inherited SSH rename (a remote mv) directly. The Daytona runtime restarts a stopped sandbox only inside ensureReady(), and its one-shot SSH recovery refuses to start a sandbox for a command that did not go through ensureReady(). So the rename fails until the user runs a turn or opens a terminal, which starts the sandbox.

Proposed fix

Bring the sandbox up before the remote move: either WorkspaceService.rename() calls runtime.ensureReady() for runtimes that need it (as terminals and turns do), or DaytonaSSHRuntime overrides renameWorkspace() to run ensureReady() first. Add a runtime test with a stopped sandbox that expects one start and a successful rename.

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
5h 8m
PR unite (30g)
952

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.