test(worktree): cover retirement runtime contracts

This commit is contained in:
Brennan Benson
2026-08-13 15:32:13 -07:00
parent 21a117aa34
commit ba024d52bf
9 changed files with 82 additions and 22 deletions
@@ -25,8 +25,7 @@ export function useRetiredWorktreeNames(
}
let cancelled = false
void client
// limit 1 because only the retirement map is wanted; the rows are incidental.
.sendRequest('worktree.list', { repo: `id:${repoId}`, limit: 1 })
.sendRequest('worktree.listRetiredNames', { repo: `id:${repoId}` })
.then((response) => {
if (cancelled) {
return