If the app crashes, it leaves the worktree in the middle of a rebase, from which it can't recover.
• Pulling master...
Error: process exited with exit code exit status: 128
Command: ["git", "switch", "master"]
Stdout:
Stderr: fatal: cannot switch branch while rebasing
Consider "git rebase --quit" or "git worktree add".
I fixed it with git worktree remove autorebase_worktree --force, maybe it could do it automatically.
(hi from reddit!)