Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .config/wt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
# Post-Create: Install dependencies after worktree creation
[pre-start]
deps = "UV_LINK_MODE=symlink uv sync --group admin & pnpm -C frontend i & wait"

# Pre-Remove: tear down this worktree's clusters so they are not orphaned.
# `rm --all` is non-interactive and exits 0 when nothing is running, so it can
# never block worktree removal.
[pre-remove]
cluster = "./scripts/cluster rm --all || true"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Do not delete volumes from the pre-remove hook

Whenever a developer removes a worktree with wt, this hook invokes rm --all, whose implementation runs docker compose ... down --volumes without asking whether the worktree's database and other persisted state may be destroyed. Worktree removal is not explicit confirmation of volume data loss, so keep the hook non-destructive or require a separate confirmed cleanup action.

AGENTS.md reference: AGENTS.md:L65-L67

Useful? React with 👍 / 👎.

Loading
Loading