Fix worktree add crash and revisit the add UX #166

Closed
opened 2026-04-12 17:22:03 +00:00 by barrettruth · 1 comment
barrettruth commented 2026-04-12 17:22:03 +00:00

Problem

Worktree add is currently broken.

The add flow can hit:
E5560: nvim_echo must not be called in a fast event context

That comes from logging in the callback path.

Expected

First fix the crash so worktree add works again.

After that, revisit the UX. The current vim.ui.input prompt works, but the fzf-lua-style model where you type a branch name in the picker and hit <c-a> feels better for worktree creation.

## Problem Worktree add is currently broken. The add flow can hit: `E5560: nvim_echo must not be called in a fast event context` That comes from logging in the callback path. ## Expected First fix the crash so worktree add works again. After that, revisit the UX. The current `vim.ui.input` prompt works, but the fzf-lua-style model where you type a branch name in the picker and hit `<c-a>` feels better for worktree creation.
barrettruth commented 2026-04-12 22:29:48 +00:00

The fast-event logging crash in worktree add is fixed on main, so closing this report. Any remaining worktree UX follow-up can be tracked separately.

The fast-event logging crash in worktree add is fixed on main, so closing this report. Any remaining worktree UX follow-up can be tracked separately.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/forge.nvim#166
No description provided.