stash_restore
Restore interrupted work by applying a stash entry via its SHA, keeping the stash intact for retry or abort. Refuses dirty worktrees to avoid mixing sets of half-finished changes.
Instructions
Put interrupted work back. Applied by sha rather than by position, and the stash entry is applied rather than dropped — so a restore that conflicts can be retried or abandoned without the work having evaporated. Refuses if the target worktree is already dirty: stacking a stash on top mixes two sets of half-finished work with no way to separate them afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cwd | No | Directory identifying the project and the tree. Defaults to this session's working directory, which in a git worktree is that worktree. |