peppa/openspec/changes/archive/2026-11-14-pep-27-session-worktrees/tasks.md
Асель 6b75324971 PEP-10/27/53: runners with a story queue, a git worktree per runner, free runners
- Runner settings with inheritance system → project → story (settings rows):
  mode story (default, one runner per story) / queue, context fresh / continue,
  workspace shared / worktree, maxRunners. No rows = behaviour as before.
- runner_tasks: a runner's story history and queue; sessions.name, sessions.workspace_path
  (migration 0007_runners).
- moveTask → startTaskOnRunner; runnerTick in the watchdog moves free queue runners to
  their next story (fresh: same tmux, new generation without resume; continue: message),
  reassigns queues of dead runners, removes finished runners' worktrees (clean + pushed).
- Free runners («Новый терминал»), rename, «Оформить стори»; the Stop hook doesn't ping
  for free runners or stories that left work.
- Web: «Новый терминал» (runners page, project sessions tab) with voice input,
  project/story runner settings, runner stories in the details panel; CLI peppa runner …
- e2e: packages/testkit/test/runners.test.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 06:38:02 +05:00

8 lines
688 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tasks: PEP-27
- [x] 2.1 `runner/worktree.ts`: создать worktree раннера (ветка стори / detached), подготовить ветку при смене стори, удалить
- [x] 2.2 Старт/resume раннера в `sessions.workspace_path`, пересоздание пропавшего
- [x] 2.3 Уборка в `runnerTick` и после «Принять»
- [x] 2.4 Веб: артефакты OpenSpec из worktree раннера, рабочая копия раннера в карточке
- [x] 2.5 e2e: две стори параллельно в разных worktree и ветках, уборка, грязное дерево остаётся