pub async fn rescue_commit(worktree: &Path, message: &str) -> Result<Rescue>Expand description
commit_all for an agent’s leftover work, minus stray foreign lockfiles.
The withheld files stay untracked in the worktree (nothing is deleted) and are returned so the caller can record them: silently dropping them could lose a file the task really asked for.