small gleam coding and persistent agent daemon with a detachable cli and a canvas ui albedo.sh

ctrl-g with Neovim as editor opens with a broken display and input #134

Closed pdewey.com
Closed opened by pdewey.com

With EDITOR=nvim (happens with or w/o --clean), pressing ctrl-g in albedo opens a mostly blank screen rather than Neovim’s normal interface. Terminal-response strings appear as literal text, and typing does not behave normally (see screenshot). Regular Vim seems less affected, showing just a warning under the albedo prompt before opening vim.

The cause seems to be the output wrapper in preserveFile, which wraps the *os.File and gives the editor a pipe instead of direct terminal access. Returning the *os.File directly appears to fix the issue.

Not particularly helpful screenshot that illustrates what nvim looks like:

nvim albedo bug

I do have a fix for this I'll PR later if it would be helpful.

that would be thanks, these kinds of things are hard to reproduce

Sign up or Sign in to add to the discussion.