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

Offen
#125 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
15/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust, vite

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Rust
Sterne
3
Forks
1
Ø Merge
9 Std. 51 Min.
Gemergte PRs (30 T.)
310

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codeatlasdev/atlas

Alle Issues in codeatlasdev/atlas

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.