peppa/packages/db/migrations/0001_chunky_dreadnoughts.sql
Асель 5184fc214c Adopt Cowork harness lessons: blocking hooks, generations, resume
- hooks move from the project template to a per-run --settings file
- PermissionRequest / AskUserQuestion hooks wait for the PM's answer in the
  DB and return the decision to Claude; fall back to the terminal dialog
  after PEPPA_HOOK_WAIT_SEC (awaiting_hook prevents double delivery)
- sessions.generation + PEPPA_GENERATION: stale hooks are ignored;
  peppa session resume relaunches with claude --resume
- SessionEnd no longer marks the process done (/clear, /resume)
- StopFailure rate_limit -> rate_limited status
- MCP: agents cannot set done or approve their own proposal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:34:07 +05:00

3 lines
282 B
SQL

ALTER TYPE "public"."session_status" ADD VALUE 'rate_limited' BEFORE 'done';--> statement-breakpoint
ALTER TABLE "questions" ADD COLUMN "awaiting_hook" boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE "sessions" ADD COLUMN "generation" integer DEFAULT 0 NOT NULL;