feat(runtime): warm per-project dev sessions shared across worktrees (Vite, test runner, browser)

Aperta
#125 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, vite

Direzione di ricerca

The payload names no files, so start from the atlas.yaml parsing and the process-supervision code in codeatlasdev/atlas and find where per-worktree commands are currently launched cold. Then read how the pilot project codeatlasdev/ui declares Vite, Vitest browser and Chromium runs. Done means the second run of a one-file test is at least 5x faster than the cold run and no processes survive an agent being killed. This is design work spanning daemon lifecycle, health checks, port and browser-profile multiplexing.

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

Descrizione

area: desktop area: runtime priority: 2 normal type: feature

Each worktree cold-starts Vite, a Vitest browser session and Chromium for every run.

Proposal: Atlas keeps warm, project-scoped sessions declared in atlas.yaml (a daemon command plus a health check) and multiplexes per-worktree requests onto them, each with its own port and browser profile. It idles them out after N minutes and kills them when their owner dies.

Acceptance: the second run of a one-file test is at least 5× faster than the cold run, and there are no orphan processes after an agent is killed.


Found while working on codeatlasdev/ui with parallel agents: a single machine (M4 Pro) saturated by several worktrees each running their own Vite, Chromium and Astro builds, plus orphaned browsers and caches. ui is the pilot project for this. Design target: works on a 4-core laptop.

Lingua principale
Rust
Stelle
3
Fork
1
Merge medio
9h 51m
PR unite (30g)
310

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 codeatlasdev/atlas

Tutte le issue di codeatlasdev/atlas

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.