[BUG] Issues with redraw and terminal hiding after a few interactions with Claude
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Comienza reproduciendo el problema con la configuración de LazyVim proporcionada, los ajustes del terminal flotante y el flujo de trabajo documentado de Claude, alternando el foco mientras está pensando. Después, rastrea las rutas de redibujado del terminal y de gestión del foco; se considera terminado cuando la entrada y el cursor se redibujan de forma consistente y ToggleFocus restaura el terminal sin requerir Esc ni interrumpir Claude.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
I'm using claudecode.nvim with LazyVim with the following configuration:
local toggle_key = "<C-,>"
return {
{
"coder/claudecode.nvim",
dependencies = { "folke/snacks.nvim" },
keys = {
{ toggle_key, "<cmd>ClaudeCodeFocus<cr>", desc = "Claude Code", mode = { "n", "x" } },
},
opts = {
terminal = {
---@module "snacks"
---@type snacks.win.Config|{}
snacks_win_opts = {
position = "float",
width = 0.9,
height = 0.9,
border = "single",
keys = {
claude_hide = {
toggle_key,
function(self)
self:hide()
end,
mode = "t",
desc = "Hide",
},
},
},
},
},
},
}
I was not able to find the exactly moment in my workflow the issues happens, but they are:
- At some point the terminal input just stops to draw and the cursor is placed in some random position in the terminal window. A few things i do try to fix it:
- Esc+i (i noticed that it enters in normal mode sometimes) or Ctrl+l (or both)
- ToggleFocus
- Quit the entire session and start the terminal again
- When Claude starts to "think" (when understanding your prompt, working through requested changes or finishing your changes to present a summary) if I use my ToggleFocus shortcut
<ctrl>+,i can't bring the terminal back again. I need to press Esc twice which end up interrupting the session.
To Reproduce
Steps to reproduce the behavior:
Install neovim, LazyVim, enable claudecode.nvim from extras and use the configuration i mentioned above.
My workflow with Claude is:
- /model -> opus
- /plan
- Interact with Claude prompts or press Esc to add information.
- Esc
- /model -> sonnet
- Shift+Tab to change to
accept edits on - Proceed
Between the steps 1-6, try to toggle focus (always wait for Claude to pause and ask something or finish the current thinking)
During the step 7 try to ToggleFocus the window.
Again, it's a bit random the moment above issues start to happen.
Expected Behavior
- Consistent (re)draw of window where the input field is always visible and the cursos placed in it
- Being able to ToggleFocus even during Claude thinking.
Environment
- Neovim version: 0.12.3
- Claude Code CLI version: 2.1.198
- OS: macOS Tahoe 26.5.2
- Plugin version: 0.3.0
Error Messages
N/A
Additional Context
N/A
- Lenguaje dominante
- Lua
- Estrellas
- 3.1k
- Forks
- 217
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de coder/claudecode.nvim
-
bug needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
coder/claudecode.nvim#314 ·
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
coder/claudecode.nvim#313 ·
-
Is this plugin abondonned? Abiertoneeds-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
coder/claudecode.nvim#319 · 1 reacción ·
-
[BUG] 框选文本一直抱错误信息 Abiertobug needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
coder/claudecode.nvim#316 · 1 comentario ·
-
needs-triage
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
coder/claudecode.nvim#309 ·
Todos los issues de coder/claudecode.nvim
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
openSUSE/python-rpm-macros#219 ·
-
bug mini.bracketed
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
accessibility bug typst
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
quarto-dev/quarto-cli#14947 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
HenrikBengtsson/CBI-software#134 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
secondlife/slua#96 ·